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

Side by Side Diff: net/base/network_delegate_impl.cc

Issue 1362793003: Notify NetworkDelegate when bytes have been sent over the network. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initial patch set Created 5 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/base/network_delegate_impl.h" 5 #include "net/base/network_delegate_impl.h"
6 6
7 #include "net/base/net_errors.h" 7 #include "net/base/net_errors.h"
8 8
9 namespace net { 9 namespace net {
10 10
(...skipping 22 matching lines...) Expand all
33 void NetworkDelegateImpl::OnBeforeSendProxyHeaders( 33 void NetworkDelegateImpl::OnBeforeSendProxyHeaders(
34 URLRequest* request, 34 URLRequest* request,
35 const ProxyInfo& proxy_info, 35 const ProxyInfo& proxy_info,
36 HttpRequestHeaders* headers) { 36 HttpRequestHeaders* headers) {
37 } 37 }
38 38
39 void NetworkDelegateImpl::OnSendHeaders(URLRequest* request, 39 void NetworkDelegateImpl::OnSendHeaders(URLRequest* request,
40 const HttpRequestHeaders& headers) { 40 const HttpRequestHeaders& headers) {
41 } 41 }
42 42
43 void NetworkDelegateImpl::OnNetworkBytesSent(const URLRequest& request,
44 int64_t bytes_sent) {}
45
43 int NetworkDelegateImpl::OnHeadersReceived( 46 int NetworkDelegateImpl::OnHeadersReceived(
44 URLRequest* request, 47 URLRequest* request,
45 const CompletionCallback& callback, 48 const CompletionCallback& callback,
46 const HttpResponseHeaders* original_response_headers, 49 const HttpResponseHeaders* original_response_headers,
47 scoped_refptr<HttpResponseHeaders>* override_response_headers, 50 scoped_refptr<HttpResponseHeaders>* override_response_headers,
48 GURL* allowed_unsafe_redirect_url) { 51 GURL* allowed_unsafe_redirect_url) {
49 return OK; 52 return OK;
50 } 53 }
51 54
52 void NetworkDelegateImpl::OnBeforeRedirect(URLRequest* request, 55 void NetworkDelegateImpl::OnBeforeRedirect(URLRequest* request,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 109 }
107 110
108 bool NetworkDelegateImpl::OnCancelURLRequestWithPolicyViolatingReferrerHeader( 111 bool NetworkDelegateImpl::OnCancelURLRequestWithPolicyViolatingReferrerHeader(
109 const URLRequest& request, 112 const URLRequest& request,
110 const GURL& target_url, 113 const GURL& target_url,
111 const GURL& referrer_url) const { 114 const GURL& referrer_url) const {
112 return false; 115 return false;
113 } 116 }
114 117
115 } // namespace net 118 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698