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

Unified Diff: Source/core/dom/DecodedDataDocumentParser.h

Issue 133273007: Revert "Moved text decoding to the parser thread" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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 | « Source/core/core.gypi ('k') | Source/core/dom/DecodedDataDocumentParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DecodedDataDocumentParser.h
diff --git a/Source/core/dom/DecodedDataDocumentParser.h b/Source/core/dom/DecodedDataDocumentParser.h
index 6264bbbf59b10d129c53b3313d3fd1a2945ae4a6..b05810960f7de860b9792acd59abce049f66ccfb 100644
--- a/Source/core/dom/DecodedDataDocumentParser.h
+++ b/Source/core/dom/DecodedDataDocumentParser.h
@@ -42,11 +42,10 @@ public:
// The below functions are used by DocumentWriter (the loader).
virtual void appendBytes(const char* bytes, size_t length) OVERRIDE;
virtual void flush() OVERRIDE;
- virtual bool needsDecoder() const OVERRIDE FINAL { return m_needsDecoder; }
- virtual void setDecoder(PassOwnPtr<TextResourceDecoder>) OVERRIDE;
+ virtual bool needsDecoder() const OVERRIDE FINAL { return !m_decoder; }
+ virtual void setDecoder(PassOwnPtr<TextResourceDecoder>) OVERRIDE FINAL;
virtual TextResourceDecoder* decoder() OVERRIDE FINAL;
-
- PassOwnPtr<TextResourceDecoder> takeDecoder();
+ virtual void setHasAppendedData() OVERRIDE FINAL;
protected:
explicit DecodedDataDocumentParser(Document*);
@@ -58,7 +57,7 @@ private:
void updateDocument(String& decodedData);
- bool m_needsDecoder;
+ bool m_hasAppendedData;
OwnPtr<TextResourceDecoder> m_decoder;
};
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/DecodedDataDocumentParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698