| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/net/chrome_network_delegate.h" | 5 #include "chrome/browser/net/chrome_network_delegate.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/base_paths.h" | 8 #include "base/base_paths.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "chrome/browser/api/prefs/pref_member.h" | 10 #include "chrome/browser/api/prefs/pref_member.h" |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 NOTREACHED(); | 290 NOTREACHED(); |
| 291 } | 291 } |
| 292 ForwardProxyErrors(request, event_router_.get(), profile_); | 292 ForwardProxyErrors(request, event_router_.get(), profile_); |
| 293 | 293 |
| 294 ForwardRequestStatus(REQUEST_DONE, request, profile_); | 294 ForwardRequestStatus(REQUEST_DONE, request, profile_); |
| 295 } | 295 } |
| 296 | 296 |
| 297 void ChromeNetworkDelegate::OnURLRequestDestroyed(net::URLRequest* request) { | 297 void ChromeNetworkDelegate::OnURLRequestDestroyed(net::URLRequest* request) { |
| 298 ExtensionWebRequestEventRouter::GetInstance()->OnURLRequestDestroyed( | 298 ExtensionWebRequestEventRouter::GetInstance()->OnURLRequestDestroyed( |
| 299 profile_, request); | 299 profile_, request); |
| 300 if (load_time_stats_) |
| 301 load_time_stats_->OnURLRequestDestroyed(*request); |
| 300 } | 302 } |
| 301 | 303 |
| 302 void ChromeNetworkDelegate::OnPACScriptError(int line_number, | 304 void ChromeNetworkDelegate::OnPACScriptError(int line_number, |
| 303 const string16& error) { | 305 const string16& error) { |
| 304 extensions::ProxyEventRouter::GetInstance()->OnPACScriptError( | 306 extensions::ProxyEventRouter::GetInstance()->OnPACScriptError( |
| 305 event_router_.get(), profile_, line_number, error); | 307 event_router_.get(), profile_, line_number, error); |
| 306 } | 308 } |
| 307 | 309 |
| 308 net::NetworkDelegate::AuthRequiredResponse | 310 net::NetworkDelegate::AuthRequiredResponse |
| 309 ChromeNetworkDelegate::OnAuthRequired( | 311 ChromeNetworkDelegate::OnAuthRequired( |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 #endif | 449 #endif |
| 448 return net::OK; | 450 return net::OK; |
| 449 } | 451 } |
| 450 | 452 |
| 451 void ChromeNetworkDelegate::OnRequestWaitStateChange( | 453 void ChromeNetworkDelegate::OnRequestWaitStateChange( |
| 452 const net::URLRequest& request, | 454 const net::URLRequest& request, |
| 453 RequestWaitState state) { | 455 RequestWaitState state) { |
| 454 if (load_time_stats_) | 456 if (load_time_stats_) |
| 455 load_time_stats_->OnRequestWaitStateChange(request, state); | 457 load_time_stats_->OnRequestWaitStateChange(request, state); |
| 456 } | 458 } |
| OLD | NEW |