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

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: fix compile Created 6 years, 3 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 9639d947738e4351dbcbfe6a1e90e09c3a577bef..f254b160ab04d5b37c351009e02e881876534b1f 100644
--- a/Source/core/xml/XMLHttpRequest.h
+++ b/Source/core/xml/XMLHttpRequest.h
@@ -24,6 +24,7 @@
#include "bindings/core/v8/ScriptString.h"
#include "core/dom/ActiveDOMObject.h"
+#include "core/dom/DocumentParserClient.h"
#include "core/events/EventListener.h"
#include "core/loader/ThreadableLoaderClient.h"
#include "core/streams/ReadableStreamImpl.h"
@@ -58,6 +59,7 @@ class XMLHttpRequest FINAL
: public RefCountedWillBeGarbageCollectedFinalized<XMLHttpRequest>
, public XMLHttpRequestEventTarget
, private ThreadableLoaderClient
+ , public DocumentParserClient
, public ActiveDOMObject {
DEFINE_WRAPPERTYPEINFO();
REFCOUNTED_EVENT_TARGET(XMLHttpRequest);
@@ -166,6 +168,11 @@ private:
virtual void didFail(const ResourceError&) OVERRIDE;
virtual void didFailRedirectCheck() OVERRIDE;
+ // DocumentParserClient
+ virtual void notifyParserStopped() 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.
@@ -244,6 +251,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