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

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

Issue 1295903005: [DevTools] Implementation of resource requests blocked by specific urls. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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/inspector/InspectorResourceAgent.h
diff --git a/Source/core/inspector/InspectorResourceAgent.h b/Source/core/inspector/InspectorResourceAgent.h
index f2fe916fe4e8c58b43e7c6d3f03d1dee26dfe145..fcf41d9424cb37dface55530cfa3d08ccc4112b0 100644
--- a/Source/core/inspector/InspectorResourceAgent.h
+++ b/Source/core/inspector/InspectorResourceAgent.h
@@ -83,6 +83,7 @@ public:
DECLARE_VIRTUAL_TRACE();
// Called from instrumentation.
+ bool shouldBlockRequest(const ResourceRequest&);
pfeldman 2015/08/21 01:38:45 Can we make it the other way around where devtools
void willSendRequest(unsigned long identifier, DocumentLoader*, ResourceRequest&, const ResourceResponse& redirectResponse, const FetchInitiatorInfo&);
void markResourceAsCached(unsigned long identifier);
void didReceiveResourceResponse(LocalFrame*, unsigned long identifier, DocumentLoader*, const ResourceResponse&, ResourceLoader*);
@@ -135,6 +136,8 @@ public:
void setUserAgentOverride(ErrorString*, const String& userAgent) override;
void setExtraHTTPHeaders(ErrorString*, const RefPtr<JSONObject>&) override;
void getResponseBody(ErrorString*, const String& requestId, PassRefPtrWillBeRawPtr<GetResponseBodyCallback>) override;
+ void addBlockedURL(ErrorString*, const String& url) override;
+ void removeBlockedURL(ErrorString*, const String& url) override;
void replayXHR(ErrorString*, const String& requestId) override;
void setMonitoringXHREnabled(ErrorString*, bool) override;
« no previous file with comments | « Source/core/inspector/InspectorInstrumentation.idl ('k') | Source/core/inspector/InspectorResourceAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698