| OLD | NEW |
| 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/layered_network_delegate.h" | 5 #include "net/base/layered_network_delegate.h" |
| 6 | 6 |
| 7 namespace net { | 7 namespace net { |
| 8 | 8 |
| 9 LayeredNetworkDelegate::LayeredNetworkDelegate( | 9 LayeredNetworkDelegate::LayeredNetworkDelegate( |
| 10 scoped_ptr<NetworkDelegate> nested_network_delegate) | 10 scoped_ptr<NetworkDelegate> nested_network_delegate) |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 } | 131 } |
| 132 | 132 |
| 133 void LayeredNetworkDelegate::OnResponseStarted(URLRequest* request) { | 133 void LayeredNetworkDelegate::OnResponseStarted(URLRequest* request) { |
| 134 OnResponseStartedInternal(request); | 134 OnResponseStartedInternal(request); |
| 135 nested_network_delegate_->NotifyResponseStarted(request); | 135 nested_network_delegate_->NotifyResponseStarted(request); |
| 136 } | 136 } |
| 137 | 137 |
| 138 void LayeredNetworkDelegate::OnResponseStartedInternal(URLRequest* request) { | 138 void LayeredNetworkDelegate::OnResponseStartedInternal(URLRequest* request) { |
| 139 } | 139 } |
| 140 | 140 |
| 141 void LayeredNetworkDelegate::OnRawBytesRead(const URLRequest& request, | 141 void LayeredNetworkDelegate::OnNetworkBytesReceived(const URLRequest& request, |
| 142 int bytes_read) { | 142 int64_t bytes_received) { |
| 143 OnRawBytesReadInternal(request, bytes_read); | 143 OnNetworkBytesReceivedInternal(request, bytes_received); |
| 144 nested_network_delegate_->NotifyRawBytesRead(request, bytes_read); | 144 nested_network_delegate_->NotifyNetworkBytesReceived(request, bytes_received); |
| 145 } | 145 } |
| 146 | 146 |
| 147 void LayeredNetworkDelegate::OnRawBytesReadInternal(const URLRequest& request, | 147 void LayeredNetworkDelegate::OnNetworkBytesReceivedInternal( |
| 148 int bytes_read) { | 148 const URLRequest& request, |
| 149 } | 149 int64_t bytes_received) {} |
| 150 | 150 |
| 151 void LayeredNetworkDelegate::OnCompleted(URLRequest* request, bool started) { | 151 void LayeredNetworkDelegate::OnCompleted(URLRequest* request, bool started) { |
| 152 OnCompletedInternal(request, started); | 152 OnCompletedInternal(request, started); |
| 153 nested_network_delegate_->NotifyCompleted(request, started); | 153 nested_network_delegate_->NotifyCompleted(request, started); |
| 154 } | 154 } |
| 155 | 155 |
| 156 void LayeredNetworkDelegate::OnCompletedInternal(URLRequest* request, | 156 void LayeredNetworkDelegate::OnCompletedInternal(URLRequest* request, |
| 157 bool started) { | 157 bool started) { |
| 158 } | 158 } |
| 159 | 159 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 } | 264 } |
| 265 | 265 |
| 266 void LayeredNetworkDelegate:: | 266 void LayeredNetworkDelegate:: |
| 267 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( | 267 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( |
| 268 const URLRequest& request, | 268 const URLRequest& request, |
| 269 const GURL& target_url, | 269 const GURL& target_url, |
| 270 const GURL& referrer_url) const { | 270 const GURL& referrer_url) const { |
| 271 } | 271 } |
| 272 | 272 |
| 273 } // namespace net | 273 } // namespace net |
| OLD | NEW |