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

Unified Diff: Source/core/dom/DocumentParserClient.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/dom/DocumentParserClient.h
diff --git a/Source/core/dom/DocumentParserClient.h b/Source/core/dom/DocumentParserClient.h
new file mode 100644
index 0000000000000000000000000000000000000000..38cc39bc9017c8ed33bb9f4e15c5439f559c6352
--- /dev/null
+++ b/Source/core/dom/DocumentParserClient.h
@@ -0,0 +1,23 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef DocumentParserClient_h
+#define DocumentParserClient_h
+
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class DocumentParserClient : public WillBeGarbageCollectedMixin {
+public:
+ // This callback is called when all data pushed to parser has been consumed.
+ virtual void notifyParserStopped() = 0;
+
+protected:
+ DocumentParserClient() { }
+};
+
+} // namespace blink
+
+#endif // DocumentParserClient_h

Powered by Google App Engine
This is Rietveld 408576698