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

Unified Diff: sky/engine/core/html/parser/HTMLDocumentParser.h

Issue 720903002: Script-based imports should basically work (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Use String::format Created 6 years, 1 month 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: sky/engine/core/html/parser/HTMLDocumentParser.h
diff --git a/sky/engine/core/html/parser/HTMLDocumentParser.h b/sky/engine/core/html/parser/HTMLDocumentParser.h
index ba4b4c10a4c3a4f49c2840478b178d9ca31ca74b..6b297bffee9d8edbda2496b63c188607abe6f616 100644
--- a/sky/engine/core/html/parser/HTMLDocumentParser.h
+++ b/sky/engine/core/html/parser/HTMLDocumentParser.h
@@ -26,6 +26,7 @@
#ifndef HTMLDocumentParser_h
#define HTMLDocumentParser_h
+#include "base/callback.h"
#include "base/memory/weak_ptr.h"
#include "core/dom/DocumentParser.h"
#include "core/fetch/ResourceClient.h"
@@ -65,7 +66,8 @@ public:
}
virtual ~HTMLDocumentParser();
- void parse(mojo::ScopedDataPipeConsumerHandle) override;
+ void parse(mojo::ScopedDataPipeConsumerHandle,
+ const base::Closure& completionCallback) override;
// Exposed for HTMLParserScheduler
void resumeParsingAfterYield();
@@ -129,6 +131,8 @@ private:
base::WeakPtrFactory<HTMLDocumentParser> m_weakFactory;
base::WeakPtr<BackgroundHTMLParser> m_backgroundParser;
+ base::Closure m_completionCallback;
+
bool m_isFragment;
bool m_endWasDelayed;
bool m_haveBackgroundParser;
« no previous file with comments | « sky/engine/core/html/imports/HTMLImportLoader.cpp ('k') | sky/engine/core/html/parser/HTMLDocumentParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698