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

Unified Diff: Source/core/loader/DocumentWriter.h

Issue 779393002: Turn DocumentParser::pinToMainThread into a cleaner api (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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/loader/DocumentLoader.cpp ('k') | Source/core/loader/DocumentWriter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/DocumentWriter.h
diff --git a/Source/core/loader/DocumentWriter.h b/Source/core/loader/DocumentWriter.h
index 710c18829776e058c3a583b12044787ad0829191..0b6a7fd8316657cfc645a2715cf6a93bf7bf644a 100644
--- a/Source/core/loader/DocumentWriter.h
+++ b/Source/core/loader/DocumentWriter.h
@@ -29,6 +29,7 @@
#ifndef DocumentWriter_h
#define DocumentWriter_h
+#include "core/html/parser/ParserSynchronizationPolicy.h"
#include "core/loader/TextResourceDecoderBuilder.h"
#include "platform/heap/Handle.h"
#include "wtf/RefCounted.h"
@@ -42,14 +43,13 @@ class DocumentParser;
class DocumentWriter : public RefCountedWillBeGarbageCollectedFinalized<DocumentWriter> {
WTF_MAKE_NONCOPYABLE(DocumentWriter);
public:
- static PassRefPtrWillBeRawPtr<DocumentWriter> create(Document*, const AtomicString& mimeType = emptyAtom, const AtomicString& encoding = emptyAtom);
+ static PassRefPtrWillBeRawPtr<DocumentWriter> create(Document*, ParserSynchronizationPolicy, const AtomicString& mimeType = emptyAtom, const AtomicString& encoding = emptyAtom);
~DocumentWriter();
void trace(Visitor*);
void end();
- void forceSynchronousParse();
void addData(const char* bytes, size_t length);
const AtomicString& mimeType() const { return m_decoderBuilder.mimeType(); }
@@ -63,13 +63,12 @@ public:
void setDocumentWasLoadedAsPartOfNavigation();
private:
- DocumentWriter(Document*, const AtomicString& mimeType, const AtomicString& encoding);
+ DocumentWriter(Document*, ParserSynchronizationPolicy, const AtomicString& mimeType, const AtomicString& encoding);
RawPtrWillBeMember<Document> m_document;
TextResourceDecoderBuilder m_decoderBuilder;
RefPtrWillBeMember<DocumentParser> m_parser;
- bool m_forcedSynchronousParse;
};
} // namespace blink
« no previous file with comments | « Source/core/loader/DocumentLoader.cpp ('k') | Source/core/loader/DocumentWriter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698