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

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: Rebased on master 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
« no previous file with comments | « net/base/network_delegate_impl.h ('k') | net/url_request/url_request_http_job_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void NetworkDelegateImpl::OnBeforeRedirect(URLRequest* request, 52 void NetworkDelegateImpl::OnBeforeRedirect(URLRequest* request,
53 const GURL& new_location) { 53 const GURL& new_location) {
54 } 54 }
55 55
56 void NetworkDelegateImpl::OnResponseStarted(URLRequest* request) { 56 void NetworkDelegateImpl::OnResponseStarted(URLRequest* request) {
57 } 57 }
58 58
59 void NetworkDelegateImpl::OnNetworkBytesReceived(const URLRequest& request, 59 void NetworkDelegateImpl::OnNetworkBytesReceived(const URLRequest& request,
60 int64_t bytes_received) {} 60 int64_t bytes_received) {}
61 61
62 void NetworkDelegateImpl::OnNetworkBytesSent(const URLRequest& request,
63 int64_t bytes_sent) {}
64
62 void NetworkDelegateImpl::OnCompleted(URLRequest* request, bool started) { 65 void NetworkDelegateImpl::OnCompleted(URLRequest* request, bool started) {
63 } 66 }
64 67
65 void NetworkDelegateImpl::OnURLRequestDestroyed(URLRequest* request) { 68 void NetworkDelegateImpl::OnURLRequestDestroyed(URLRequest* request) {
66 } 69 }
67 70
68 void NetworkDelegateImpl::OnURLRequestJobOrphaned(URLRequest* request) {} 71 void NetworkDelegateImpl::OnURLRequestJobOrphaned(URLRequest* request) {}
69 72
70 void NetworkDelegateImpl::OnPACScriptError(int line_number, 73 void NetworkDelegateImpl::OnPACScriptError(int line_number,
71 const base::string16& error) { 74 const base::string16& error) {
(...skipping 34 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
« no previous file with comments | « net/base/network_delegate_impl.h ('k') | net/url_request/url_request_http_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698