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: extensions/browser/api/web_request/web_request_api_helpers.h

Issue 2449913002: Support WebSocket in WebRequest API. (Closed)
Patch Set: Fix unittest; add 'websocket' type to WebRequest API. Created 3 years, 10 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: extensions/browser/api/web_request/web_request_api_helpers.h
diff --git a/extensions/browser/api/web_request/web_request_api_helpers.h b/extensions/browser/api/web_request/web_request_api_helpers.h
index 5d2caaedb17e61bf1a21950c7f5ec1b3743e5a1f..3706461819f8563c64e382a2de5184a151a28769 100644
--- a/extensions/browser/api/web_request/web_request_api_helpers.h
+++ b/extensions/browser/api/web_request/web_request_api_helpers.h
@@ -259,7 +259,8 @@ void MergeCancelOfResponses(const EventResponseDeltas& deltas,
// Stores in |*new_url| the redirect request of the extension with highest
// precedence. Extensions that did not command to redirect the request are
// ignored in this logic.
-void MergeRedirectUrlOfResponses(const EventResponseDeltas& deltas,
+void MergeRedirectUrlOfResponses(const GURL& url,
+ const EventResponseDeltas& deltas,
GURL* new_url,
extensions::WarningSet* conflicting_extensions,
const net::NetLogWithSource* net_log);
@@ -267,6 +268,7 @@ void MergeRedirectUrlOfResponses(const EventResponseDeltas& deltas,
// precedence. Extensions that did not command to redirect the request are
// ignored in this logic.
void MergeOnBeforeRequestResponses(
+ const GURL& url,
const EventResponseDeltas& deltas,
GURL* new_url,
extensions::WarningSet* conflicting_extensions,
@@ -303,6 +305,7 @@ void MergeCookiesInOnHeadersReceivedResponses(
// (to request redirection) and |*allowed_unsafe_redirect_url| (to make sure
// that the request is not cancelled with net::ERR_UNSAFE_REDIRECT).
void MergeOnHeadersReceivedResponses(
+ const GURL& url,
const EventResponseDeltas& deltas,
const net::HttpResponseHeaders* original_response_headers,
scoped_refptr<net::HttpResponseHeaders>* override_response_headers,

Powered by Google App Engine
This is Rietveld 408576698