Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: Source/core/html/imports/HTMLImportLoader.h

Issue 238923009: HTML Imports: No more BlockingDocumentCreation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased to ToT. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/imports/HTMLImportChild.cpp ('k') | Source/core/html/imports/HTMLImportLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/imports/HTMLImportLoader.h
diff --git a/Source/core/html/imports/HTMLImportLoader.h b/Source/core/html/imports/HTMLImportLoader.h
index 74b82681b4184ff64f67d83181abed6a0f808e72..a39f140493bdc54316b9663bdad7dcc75cbf7971 100644
--- a/Source/core/html/imports/HTMLImportLoader.h
+++ b/Source/core/html/imports/HTMLImportLoader.h
@@ -33,15 +33,19 @@
#include "core/fetch/RawResource.h"
#include "core/fetch/ResourceOwner.h"
+#include "wtf/OwnPtr.h"
+#include "wtf/PassOwnPtr.h"
#include "wtf/Vector.h"
namespace WebCore {
+class CustomElementMicrotaskQueue;
class Document;
class DocumentWriter;
class HTMLImportChild;
class HTMLImportsController;
+
//
// Owning imported Document lifetime. It also implements ResourceClient through ResourceOwner
// to feed fetched bytes to the DocumentWriter of the imported document.
@@ -73,12 +77,14 @@ public:
bool isDone() const { return m_state == StateLoaded || m_state == StateError; }
bool hasError() const { return m_state == StateError; }
+ bool shouldBlockScriptExecution() const;
void importDestroyed();
void startLoading(const ResourcePtr<RawResource>&);
void didFinishParsing();
void didRemoveAllPendingStylesheet();
- bool isOwnedBy(const HTMLImportChild* import) const { return m_imports[0] == import; }
+
+ PassRefPtr<CustomElementMicrotaskQueue> microtaskQueue() const;
private:
HTMLImportLoader(HTMLImportsController*);
@@ -103,6 +109,7 @@ private:
State m_state;
RefPtr<Document> m_importedDocument;
RefPtr<DocumentWriter> m_writer;
+ RefPtr<CustomElementMicrotaskQueue> m_microtaskQueue;
};
} // namespace WebCore
« no previous file with comments | « Source/core/html/imports/HTMLImportChild.cpp ('k') | Source/core/html/imports/HTMLImportLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698