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

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

Issue 535403002: introduce DocumentParserClient to receive parser stopped notification (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
Index: Source/core/html/imports/HTMLImportLoader.h
diff --git a/Source/core/html/imports/HTMLImportLoader.h b/Source/core/html/imports/HTMLImportLoader.h
index 9ddbf20fc6e75d4d11bd5d36db3ca3e31ac068ea..e14c447a1532ba89d59dd8e5d6b5e9a95d3f5df9 100644
--- a/Source/core/html/imports/HTMLImportLoader.h
+++ b/Source/core/html/imports/HTMLImportLoader.h
@@ -31,6 +31,7 @@
#ifndef HTMLImportLoader_h
#define HTMLImportLoader_h
+#include "core/dom/DocumentParserClient.h"
#include "core/fetch/RawResource.h"
#include "core/fetch/ResourceOwner.h"
#include "platform/heap/Handle.h"
@@ -53,7 +54,7 @@ class HTMLImportsController;
// HTMLImportLoader is owned by HTMLImportsController.
//
//
-class HTMLImportLoader FINAL : public NoBaseWillBeGarbageCollectedFinalized<HTMLImportLoader>, public ResourceOwner<RawResource> {
+class HTMLImportLoader FINAL : public NoBaseWillBeGarbageCollectedFinalized<HTMLImportLoader>, public ResourceOwner<RawResource>, public DocumentParserClient {
public:
enum State {
StateLoading,
@@ -88,9 +89,6 @@ public:
#endif
void startLoading(const ResourcePtr<RawResource>&);
- // Tells the loader that the parser is done with this import.
- // Called by Document::finishedParsing, after DOMContentLoaded was dispatched.
- void didFinishParsing();
// Tells the loader that all of the import's stylesheets finished
// loading.
// Called by Document::didRemoveAllPendingStylesheet.
@@ -108,6 +106,11 @@ private:
virtual void dataReceived(Resource*, const char* data, int length) OVERRIDE;
virtual void notifyFinished(Resource*) OVERRIDE;
+ // DocumentParserClient
+
+ // Called after document parse is complete after DOMContentLoaded was dispatched.
+ virtual void notifyParserStopped();
+
State startWritingAndParsing(const ResourceResponse&);
State finishWriting();
State finishParsing();

Powered by Google App Engine
This is Rietveld 408576698