Chromium Code Reviews| 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; |