michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsAHtml5TreeOpSink_h michael@0: #define nsAHtml5TreeOpSink_h michael@0: michael@0: /** michael@0: * The purpose of this interface is to connect a tree op executor michael@0: * (main-thread case), a tree op stage (non-speculative off-the-main-thread michael@0: * case) or a speculation (speculative case). michael@0: */ michael@0: class nsAHtml5TreeOpSink { michael@0: public: michael@0: michael@0: /** michael@0: * Flush the operations from the tree operations from the argument michael@0: * queue into this sink unconditionally. michael@0: */ michael@0: virtual void MoveOpsFrom(nsTArray& aOpQueue) = 0; michael@0: michael@0: }; michael@0: michael@0: #endif /* nsAHtml5TreeOpSink_h */