| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 void LayeredNetworkDelegate::OnRawBytesRead(const URLRequest& request, | 141 void LayeredNetworkDelegate::OnRawBytesRead(const URLRequest& request, |
| 142 int bytes_read) { | 142 int bytes_read) { |
| 143 OnRawBytesReadInternal(request, bytes_read); | 143 OnRawBytesReadInternal(request, bytes_read); |
| 144 nested_network_delegate_->NotifyRawBytesRead(request, bytes_read); | 144 nested_network_delegate_->NotifyRawBytesRead(request, bytes_read); |
| 145 } | 145 } |
| 146 | 146 |
| 147 void LayeredNetworkDelegate::OnRawBytesReadInternal(const URLRequest& request, | 147 void LayeredNetworkDelegate::OnRawBytesReadInternal(const URLRequest& request, |
| 148 int bytes_read) { | 148 int bytes_read) { |
| 149 } | 149 } |
| 150 | 150 |
| 151 void LayeredNetworkDelegate::OnNetworkBytesReceived(const URLRequest& request, |
| 152 int64 bytes_received) { |
| 153 OnNetworkBytesReceivedInternal(request, bytes_received); |
| 154 nested_network_delegate_->NotifyNetworkBytesReceived(request, bytes_received); |
| 155 } |
| 156 |
| 157 void LayeredNetworkDelegate::OnNetworkBytesReceivedInternal( |
| 158 const URLRequest& request, |
| 159 int64 bytes_received) {} |
| 160 |
| 151 void LayeredNetworkDelegate::OnCompleted(URLRequest* request, bool started) { | 161 void LayeredNetworkDelegate::OnCompleted(URLRequest* request, bool started) { |
| 152 OnCompletedInternal(request, started); | 162 OnCompletedInternal(request, started); |
| 153 nested_network_delegate_->NotifyCompleted(request, started); | 163 nested_network_delegate_->NotifyCompleted(request, started); |
| 154 } | 164 } |
| 155 | 165 |
| 156 void LayeredNetworkDelegate::OnCompletedInternal(URLRequest* request, | 166 void LayeredNetworkDelegate::OnCompletedInternal(URLRequest* request, |
| 157 bool started) { | 167 bool started) { |
| 158 } | 168 } |
| 159 | 169 |
| 160 void LayeredNetworkDelegate::OnURLRequestDestroyed(URLRequest* request) { | 170 void LayeredNetworkDelegate::OnURLRequestDestroyed(URLRequest* request) { |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 } | 274 } |
| 265 | 275 |
| 266 void LayeredNetworkDelegate:: | 276 void LayeredNetworkDelegate:: |
| 267 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( | 277 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( |
| 268 const URLRequest& request, | 278 const URLRequest& request, |
| 269 const GURL& target_url, | 279 const GURL& target_url, |
| 270 const GURL& referrer_url) const { | 280 const GURL& referrer_url) const { |
| 271 } | 281 } |
| 272 | 282 |
| 273 } // namespace net | 283 } // namespace net |
| OLD | NEW |