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

Unified Diff: chrome/browser/extensions/api/web_request/web_request_api_helpers.h

Issue 10702079: Use the first_party_for_cookies URL to filter which requests the WebRequest API sees (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src
Patch Set: Created 8 years, 6 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: chrome/browser/extensions/api/web_request/web_request_api_helpers.h
diff --git a/chrome/browser/extensions/api/web_request/web_request_api_helpers.h b/chrome/browser/extensions/api/web_request/web_request_api_helpers.h
index 98796578f164bfec90df1bf9902d3a27c4f61569..eada375fead8263108333efbdc43bb04e5515b1e 100644
--- a/chrome/browser/extensions/api/web_request/web_request_api_helpers.h
+++ b/chrome/browser/extensions/api/web_request/web_request_api_helpers.h
@@ -28,6 +28,11 @@ class ListValue;
class Value;
}
+namespace net {
+class BoundNetLog;
+class URLRequest;
+}
+
namespace extension_web_request_api_helpers {
typedef std::pair<std::string, std::string> ResponseHeader;
@@ -179,8 +184,8 @@ bool MergeOnAuthRequiredResponses(
std::set<std::string>* conflicting_extensions,
EventLogEntries* event_log_entries);
-// Returns true if requests for |url| shall not be reported to extensions.
-bool HideRequestForURL(const GURL& url);
+// Returns true if the request shall not be reported to extensions.
+bool HideRequest(net::URLRequest* request);
// Returns whether |type| is a ResourceType that is handled by the web request
// API.

Powered by Google App Engine
This is Rietveld 408576698