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

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

Issue 676763003: Remove BackgroundHTMLInputStream (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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
Index: sky/engine/core/html/parser/BackgroundHTMLParser.h
diff --git a/sky/engine/core/html/parser/BackgroundHTMLParser.h b/sky/engine/core/html/parser/BackgroundHTMLParser.h
index fa494c4073b2ed998d6e7b9a8d528c9c5b74dde9..9f2551376397b73c6c4cb289a25f4696127f9c2f 100644
--- a/sky/engine/core/html/parser/BackgroundHTMLParser.h
+++ b/sky/engine/core/html/parser/BackgroundHTMLParser.h
@@ -27,11 +27,11 @@
#define BackgroundHTMLParser_h
#include "base/memory/weak_ptr.h"
-#include "core/html/parser/BackgroundHTMLInputStream.h"
#include "core/html/parser/CompactHTMLToken.h"
#include "core/html/parser/HTMLParserOptions.h"
#include "core/html/parser/HTMLTreeBuilderSimulator.h"
#include "core/html/parser/TextResourceDecoder.h"
+#include "platform/text/SegmentedString.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/WeakPtr.h"
@@ -54,7 +54,6 @@ public:
WeakPtr<HTMLDocumentParser> parser;
OwnPtr<HTMLToken> token;
OwnPtr<HTMLTokenizer> tokenizer;
- HTMLInputCheckpoint inputCheckpoint;
String unparsedInput;
};
@@ -63,7 +62,6 @@ public:
void appendRawBytesFromMainThread(PassOwnPtr<Vector<char> >);
void flush();
void resumeFrom(PassOwnPtr<Checkpoint>);
- void startedChunkWithCheckpoint(HTMLInputCheckpoint);
void finish();
void stop();
@@ -77,7 +75,7 @@ private:
void sendTokensToMainThread();
void updateDocument(const String& decodedData);
- BackgroundHTMLInputStream m_input;
+ SegmentedString m_input;
OwnPtr<HTMLToken> m_token;
OwnPtr<HTMLTokenizer> m_tokenizer;
HTMLTreeBuilderSimulator m_treeBuilderSimulator;
« no previous file with comments | « sky/engine/core/html/parser/BackgroundHTMLInputStream.cpp ('k') | sky/engine/core/html/parser/BackgroundHTMLParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698