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

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: rebase 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
« no previous file with comments | « no previous file | Source/core/inspector/InspectorResourceAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorResourceAgent.h
diff --git a/Source/core/inspector/InspectorResourceAgent.h b/Source/core/inspector/InspectorResourceAgent.h
index 1ed283fd87956fc38d6c45d5c9b3021367f4e0c3..bbf3892486ffe141edf67792256b70b5b7ed9d27 100644
--- a/Source/core/inspector/InspectorResourceAgent.h
+++ b/Source/core/inspector/InspectorResourceAgent.h
@@ -135,6 +135,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;
@@ -149,6 +151,7 @@ public:
// Called from other agents.
void setHostId(const String&);
bool fetchResourceContent(Document*, const KURL&, String* content, bool* base64Encoded);
+ bool shouldBlockRequest(const ResourceRequest&);
private:
explicit InspectorResourceAgent(InspectorPageAgent*);
« no previous file with comments | « no previous file | Source/core/inspector/InspectorResourceAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698