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

Unified Diff: sky/engine/core/dom/DocumentParser.h

Issue 664573004: Live the dream (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: DEPS Created 6 years, 2 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 | « sky/engine/core/dom/Document.cpp ('k') | sky/engine/core/html/imports/HTMLImportLoader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/DocumentParser.h
diff --git a/sky/engine/core/dom/DocumentParser.h b/sky/engine/core/dom/DocumentParser.h
index 9b0b7658ef4430cd6ca13744fc6967d4f52454f5..7c91024c32c30aa422d23bf6d614484d431f3c65 100644
--- a/sky/engine/core/dom/DocumentParser.h
+++ b/sky/engine/core/dom/DocumentParser.h
@@ -24,6 +24,7 @@
#ifndef DocumentParser_h
#define DocumentParser_h
+#include "mojo/public/cpp/system/core.h"
#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
#include "wtf/RefCounted.h"
@@ -42,22 +43,7 @@ public:
virtual HTMLDocumentParser* asHTMLDocumentParser() { return 0; }
- // http://www.whatwg.org/specs/web-apps/current-work/#insertion-point
- virtual bool hasInsertionPoint() { return true; }
-
- // insert is used by document.write.
- virtual void insert(const SegmentedString&) = 0;
-
- // The below functions are used by DocumentWriter (the loader).
- virtual void appendBytes(const char* bytes, size_t length) = 0;
-
- // FIXME: append() should be private, but DocumentWriter::replaceDocumentWhileExecutingJavaScriptURL uses it for now.
- // FIXME: This really should take a PassOwnPtr to signify that it expects to take
- // ownership of the buffer. The parser expects the PassRefPtr to hold the only ref of the StringImpl.
- virtual void append(PassRefPtr<StringImpl>) = 0;
-
- virtual void finish() = 0;
-
+ virtual void parse(mojo::ScopedDataPipeConsumerHandle) = 0;
virtual bool processingData() const { return false; }
// document() will return 0 after detach() is called.
@@ -89,8 +75,6 @@ public:
protected:
explicit DocumentParser(Document*);
- virtual void flush() = 0;
-
private:
enum ParserState {
ParsingState,
« no previous file with comments | « sky/engine/core/dom/Document.cpp ('k') | sky/engine/core/html/imports/HTMLImportLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698