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

Unified Diff: net/base/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 | « net/base/network_delegate.h ('k') | net/http/http_cache_transaction.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_delegate.cc
diff --git a/net/base/network_delegate.cc b/net/base/network_delegate.cc
index 17da7a8ea04b23eab8126609e905e6b4648c5f68..2ed1ea5e115f2eef053fb9dfcfe152aeb0a368d3 100644
--- a/net/base/network_delegate.cc
+++ b/net/base/network_delegate.cc
@@ -8,18 +8,21 @@
namespace net {
-bool NetworkDelegate::NotifyBeforeURLRequest(URLRequest* request,
- CompletionCallback* callback) {
+int NetworkDelegate::NotifyBeforeURLRequest(URLRequest* request,
+ CompletionCallback* callback) {
DCHECK(CalledOnValidThread());
DCHECK(request);
DCHECK(callback);
return OnBeforeURLRequest(request, callback);
}
-void NetworkDelegate::NotifySendHttpRequest(HttpRequestHeaders* headers) {
+int NetworkDelegate::NotifyBeforeSendHeaders(uint64 request_id,
+ HttpRequestHeaders* headers,
+ CompletionCallback* callback) {
DCHECK(CalledOnValidThread());
DCHECK(headers);
- OnSendHttpRequest(headers);
+ DCHECK(callback);
+ return OnBeforeSendHeaders(request_id, headers, callback);
}
void NetworkDelegate::NotifyResponseStarted(URLRequest* request) {
@@ -34,6 +37,11 @@ void NetworkDelegate::NotifyReadCompleted(URLRequest* request, int bytes_read) {
OnReadCompleted(request, bytes_read);
}
+void NetworkDelegate::NotifyURLRequestDestroyed(URLRequest* request) {
+ DCHECK(request);
+ return OnURLRequestDestroyed(request);
+}
+
URLRequestJob* NetworkDelegate::MaybeCreateURLRequestJob(URLRequest* request) {
DCHECK(CalledOnValidThread());
DCHECK(request);
« no previous file with comments | « net/base/network_delegate.h ('k') | net/http/http_cache_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698