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

Unified Diff: Source/core/xml/XMLHttpRequest.h

Issue 521363002: Make XHR use the background HTML parser (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove 521403002 changes from diff Created 6 years, 4 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/xml/XMLHttpRequest.h
diff --git a/Source/core/xml/XMLHttpRequest.h b/Source/core/xml/XMLHttpRequest.h
index 15484a4f1c3ebeb52cfb2f28cf9a3cfb5aea0783..b18581c42f9c58f1434920cad64b80d9dd6e42e5 100644
--- a/Source/core/xml/XMLHttpRequest.h
+++ b/Source/core/xml/XMLHttpRequest.h
@@ -149,6 +149,13 @@ public:
virtual void trace(Visitor*) OVERRIDE;
+ static XMLHttpRequest* findInstancePendingDocumentParse(Document*);
+
+ // This is only to be called from |Document::finishedParsing|.
+ // When we use the off-thread HTML parser, we don't have a complete document just after |HTMLDocumentParser::finish()|.
+ // This method is used to notify that the response document is completely built.
+ void didFinishParsingDocument();
+
private:
XMLHttpRequest(ExecutionContext*, PassRefPtr<SecurityOrigin>);
@@ -165,6 +172,8 @@ private:
virtual void didFail(const ResourceError&) OVERRIDE;
virtual void didFailRedirectCheck() OVERRIDE;
+ void endLoading();
+
// Returns the MIME type part of m_mimeTypeOverride if present and
// successfully parsed, or returns one of the "Content-Type" header value
// of the received response.
@@ -243,6 +252,7 @@ private:
PersistentWillBeMember<UnderlyingSource> m_streamSource;
RefPtr<ThreadableLoader> m_loader;
+ unsigned long m_loaderIdentifier;
State m_state;
ResourceResponse m_response;

Powered by Google App Engine
This is Rietveld 408576698