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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 void LayeredNetworkDelegate::OnURLRequestDestroyed(URLRequest* request) { | 169 void LayeredNetworkDelegate::OnURLRequestDestroyed(URLRequest* request) { |
170 OnURLRequestDestroyedInternal(request); | 170 OnURLRequestDestroyedInternal(request); |
171 nested_network_delegate_->NotifyURLRequestDestroyed(request); | 171 nested_network_delegate_->NotifyURLRequestDestroyed(request); |
172 } | 172 } |
173 | 173 |
174 void LayeredNetworkDelegate::OnURLRequestDestroyedInternal( | 174 void LayeredNetworkDelegate::OnURLRequestDestroyedInternal( |
175 URLRequest* request) { | 175 URLRequest* request) { |
176 } | 176 } |
177 | 177 |
178 void LayeredNetworkDelegate::OnURLRequestJobOrphaned(URLRequest* request) { | |
179 // This hook is only added to debug https://crbug.com/289715, so there is no | |
180 // need for a OnURLRequestJobOrphanedInternal hook. | |
181 nested_network_delegate_->NotifyURLRequestJobOrphaned(request); | |
182 } | |
183 | |
184 void LayeredNetworkDelegate::OnPACScriptError(int line_number, | 178 void LayeredNetworkDelegate::OnPACScriptError(int line_number, |
185 const base::string16& error) { | 179 const base::string16& error) { |
186 OnPACScriptErrorInternal(line_number, error); | 180 OnPACScriptErrorInternal(line_number, error); |
187 nested_network_delegate_->NotifyPACScriptError(line_number, error); | 181 nested_network_delegate_->NotifyPACScriptError(line_number, error); |
188 } | 182 } |
189 | 183 |
190 void LayeredNetworkDelegate::OnPACScriptErrorInternal( | 184 void LayeredNetworkDelegate::OnPACScriptErrorInternal( |
191 int line_number, | 185 int line_number, |
192 const base::string16& error) { | 186 const base::string16& error) { |
193 } | 187 } |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 } | 272 } |
279 | 273 |
280 void LayeredNetworkDelegate:: | 274 void LayeredNetworkDelegate:: |
281 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( | 275 OnCancelURLRequestWithPolicyViolatingReferrerHeaderInternal( |
282 const URLRequest& request, | 276 const URLRequest& request, |
283 const GURL& target_url, | 277 const GURL& target_url, |
284 const GURL& referrer_url) const { | 278 const GURL& referrer_url) const { |
285 } | 279 } |
286 | 280 |
287 } // namespace net | 281 } // namespace net |
OLD | NEW |