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

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

Issue 1284993005: Notify NetworkDelegate when bytes have been received over the network. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::OnRawBytesRead(const URLRequest& request, 59 void NetworkDelegateImpl::OnRawBytesRead(const URLRequest& request,
60 int bytes_read) { 60 int bytes_read) {
61 } 61 }
62 62
63 void NetworkDelegateImpl::OnNetworkBytesReceived(const URLRequest& request,
bengr 2015/08/17 21:30:39 What's the argument for this approach instead of h
sclittle 2015/08/17 23:35:14 This is just a way for consumers to be notified ho
64 int64 bytes_received) {}
65
63 void NetworkDelegateImpl::OnCompleted(URLRequest* request, bool started) { 66 void NetworkDelegateImpl::OnCompleted(URLRequest* request, bool started) {
64 } 67 }
65 68
66 void NetworkDelegateImpl::OnURLRequestDestroyed(URLRequest* request) { 69 void NetworkDelegateImpl::OnURLRequestDestroyed(URLRequest* request) {
67 } 70 }
68 71
69 void NetworkDelegateImpl::OnPACScriptError(int line_number, 72 void NetworkDelegateImpl::OnPACScriptError(int line_number,
70 const base::string16& error) { 73 const base::string16& error) {
71 } 74 }
72 75
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 108 }
106 109
107 bool NetworkDelegateImpl::OnCancelURLRequestWithPolicyViolatingReferrerHeader( 110 bool NetworkDelegateImpl::OnCancelURLRequestWithPolicyViolatingReferrerHeader(
108 const URLRequest& request, 111 const URLRequest& request,
109 const GURL& target_url, 112 const GURL& target_url,
110 const GURL& referrer_url) const { 113 const GURL& referrer_url) const {
111 return false; 114 return false;
112 } 115 }
113 116
114 } // namespace net 117 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698