| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 void LayeredNetworkDelegate::OnURLRequestDestroyed(URLRequest* request) { | 160 void LayeredNetworkDelegate::OnURLRequestDestroyed(URLRequest* request) { |
| 161 OnURLRequestDestroyedInternal(request); | 161 OnURLRequestDestroyedInternal(request); |
| 162 nested_network_delegate_->NotifyURLRequestDestroyed(request); | 162 nested_network_delegate_->NotifyURLRequestDestroyed(request); |
| 163 } | 163 } |
| 164 | 164 |
| 165 void LayeredNetworkDelegate::OnURLRequestDestroyedInternal( | 165 void LayeredNetworkDelegate::OnURLRequestDestroyedInternal( |
| 166 URLRequest* request) { | 166 URLRequest* request) { |
| 167 } | 167 } |
| 168 | 168 |
| 169 void LayeredNetworkDelegate::OnURLRequestJobOrphaned(URLRequest* request) { |
| 170 // This hook is only added to debug https://crbug.com/289715, so there is no |
| 171 // need for a OnURLRequestJobOrphanedInternal hook. |
| 172 nested_network_delegate_->NotifyURLRequestJobOrphaned(request); |
| 173 } |
| 174 |
| 169 void LayeredNetworkDelegate::OnPACScriptError(int line_number, | 175 void LayeredNetworkDelegate::OnPACScriptError(int line_number, |
| 170 const base::string16& error) { | 176 const base::string16& error) { |
| 171 OnPACScriptErrorInternal(line_number, error); | 177 OnPACScriptErrorInternal(line_number, error); |
| 172 nested_network_delegate_->NotifyPACScriptError(line_number, error); | 178 nested_network_delegate_->NotifyPACScriptError(line_number, error); |
| 173 } | 179 } |
| 174 | 180 |
| 175 void LayeredNetworkDelegate::OnPACScriptErrorInternal( | 181 void LayeredNetworkDelegate::OnPACScriptErrorInternal( |
| 176 int line_number, | 182 int line_number, |
| 177 const base::string16& error) { | 183 const base::string16& error) { |
| 178 } | 184 } |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 } | 270 } |
| 265 | 271 |
| 266 void LayeredNetworkDelegate:: | 272 void LayeredNetworkDelegate:: |
| 267 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( | 273 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( |
| 268 const URLRequest& request, | 274 const URLRequest& request, |
| 269 const GURL& target_url, | 275 const GURL& target_url, |
| 270 const GURL& referrer_url) const { | 276 const GURL& referrer_url) const { |
| 271 } | 277 } |
| 272 | 278 |
| 273 } // namespace net | 279 } // namespace net |
| OLD | NEW |