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

Unified Diff: chrome/browser/net/chrome_network_delegate.cc

Issue 6698009: Add request_id to HttpRequestInfo and pass it to the NetworkDelegate for events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 500 error Created 9 years, 9 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 | « chrome/browser/net/chrome_network_delegate.h ('k') | chrome/common/extensions/api/extension_api.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_network_delegate.cc
diff --git a/chrome/browser/net/chrome_network_delegate.cc b/chrome/browser/net/chrome_network_delegate.cc
index 68e5138892571e174055970b7845a9ff3c067e29..110b966a27de0e3829b0c5bd9860b9c15589ab6e 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -45,15 +45,18 @@ ChromeNetworkDelegate::ChromeNetworkDelegate(
ChromeNetworkDelegate::~ChromeNetworkDelegate() {}
-bool ChromeNetworkDelegate::OnBeforeURLRequest(
+int ChromeNetworkDelegate::OnBeforeURLRequest(
net::URLRequest* request, net::CompletionCallback* callback) {
return ExtensionWebRequestEventRouter::GetInstance()->OnBeforeRequest(
profile_id_, event_router_.get(), request, callback);
}
-void ChromeNetworkDelegate::OnSendHttpRequest(
- net::HttpRequestHeaders* headers) {
- DCHECK(headers);
+int ChromeNetworkDelegate::OnBeforeSendHeaders(
+ uint64 request_id,
+ net::HttpRequestHeaders* headers,
+ net::CompletionCallback* callback) {
+ return ExtensionWebRequestEventRouter::GetInstance()->OnBeforeSendHeaders(
+ profile_id_, event_router_.get(), request_id, headers, callback);
}
void ChromeNetworkDelegate::OnResponseStarted(net::URLRequest* request) {
@@ -65,6 +68,11 @@ void ChromeNetworkDelegate::OnReadCompleted(net::URLRequest* request,
ForwardProxyErrors(request, event_router_.get(), profile_id_);
}
+void ChromeNetworkDelegate::OnURLRequestDestroyed(net::URLRequest* request) {
+ ExtensionWebRequestEventRouter::GetInstance()->OnURLRequestDestroyed(
+ profile_id_, request);
+}
+
net::URLRequestJob* ChromeNetworkDelegate::OnMaybeCreateURLRequestJob(
net::URLRequest* request) {
if (!protocol_handler_registry_)
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.h ('k') | chrome/common/extensions/api/extension_api.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698