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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorResourceAgent.h

Issue 1752213003: DevTools: migrate protocol dispatcher off RefPtr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined Created 4 years, 10 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: third_party/WebKit/Source/core/inspector/InspectorResourceAgent.h
diff --git a/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.h b/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.h
index f40a70276e5633c96b066e60ec871d7107eb2dd5..4f4356d6be7281f9847030405231d282e24379f4 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorResourceAgent.h
@@ -137,7 +137,7 @@ public:
void disable(ErrorString*) override;
void setUserAgentOverride(ErrorString*, const String& userAgent) override;
void setExtraHTTPHeaders(ErrorString*, PassOwnPtr<protocol::Network::Headers>) override;
- void getResponseBody(ErrorString*, const String& requestId, PassRefPtr<GetResponseBodyCallback>) override;
+ void getResponseBody(ErrorString*, const String& requestId, PassOwnPtr<GetResponseBodyCallback>) override;
void addBlockedURL(ErrorString*, const String& url) override;
void removeBlockedURL(ErrorString*, const String& url) override;
void replayXHR(ErrorString*, const String& requestId) override;
@@ -162,7 +162,8 @@ private:
void removeFinishedReplayXHRFired(Timer<InspectorResourceAgent>*);
void didFinishXHRInternal(ExecutionContext*, XMLHttpRequest*, ThreadableLoaderClient*, const AtomicString&, const String&, bool);
- bool getResponseBodyBlob(const String& requestId, PassRefPtr<GetResponseBodyCallback>);
+ bool canGetResponseBodyBlob(const String& requestId);
+ void getResponseBodyBlob(const String& requestId, PassOwnPtr<GetResponseBodyCallback>);
RawPtrWillBeMember<InspectedFrames> m_inspectedFrames;
String m_userAgentOverride;

Powered by Google App Engine
This is Rietveld 408576698