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

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

Issue 1315043008: [DevTools] Show blocked requests in Network panel. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 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/inspector/InspectorResourceAgent.h
diff --git a/Source/core/inspector/InspectorResourceAgent.h b/Source/core/inspector/InspectorResourceAgent.h
index 1a4547744dd0c610cd34ecea997f3422750ac9a1..5c64d9c4b538b1580c31c91fbbc95f8f2a460a05 100644
--- a/Source/core/inspector/InspectorResourceAgent.h
+++ b/Source/core/inspector/InspectorResourceAgent.h
@@ -38,6 +38,7 @@
#include "core/inspector/InspectorPageAgent.h"
#include "platform/Timer.h"
#include "platform/heap/Handle.h"
+#include "platform/network/ResourceRequest.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/text/WTFString.h"
@@ -58,7 +59,6 @@ class KURL;
class NetworkResourcesData;
class ResourceError;
class ResourceLoader;
-class ResourceRequest;
class ResourceResponse;
class ThreadableLoaderClient;
class XHRReplayData;
@@ -83,6 +83,7 @@ public:
DECLARE_VIRTUAL_TRACE();
// Called from instrumentation.
+ void didBlockRequest(LocalFrame*, const ResourceRequest&, DocumentLoader*, const FetchInitiatorInfo&, ResourceRequestBlockedReason);
void willSendRequest(LocalFrame*, 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*);
@@ -151,7 +152,7 @@ public:
// Called from other agents.
void setHostId(const String&);
bool fetchResourceContent(Document*, const KURL&, String* content, bool* base64Encoded);
- bool shouldBlockRequest(LocalFrame*, const ResourceRequest&, DocumentLoader*, const FetchInitiatorInfo&);
+ bool shouldBlockRequest(const ResourceRequest&);
private:
explicit InspectorResourceAgent(InspectorPageAgent*);
« 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