OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/custom_handlers/protocol_handler_registry.h" | 8 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
9 #include "chrome/browser/extensions/extension_event_router_forwarder.h" | 9 #include "chrome/browser/extensions/extension_event_router_forwarder.h" |
10 #include "chrome/browser/extensions/extension_info_map.h" | 10 #include "chrome/browser/extensions/extension_info_map.h" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 ExtensionWebRequestEventRouter::GetInstance()->OnURLRequestDestroyed( | 153 ExtensionWebRequestEventRouter::GetInstance()->OnURLRequestDestroyed( |
154 profile_, request); | 154 profile_, request); |
155 } | 155 } |
156 | 156 |
157 void ChromeNetworkDelegate::OnPACScriptError(int line_number, | 157 void ChromeNetworkDelegate::OnPACScriptError(int line_number, |
158 const string16& error) { | 158 const string16& error) { |
159 ExtensionProxyEventRouter::GetInstance()->OnPACScriptError( | 159 ExtensionProxyEventRouter::GetInstance()->OnPACScriptError( |
160 event_router_.get(), profile_, line_number, error); | 160 event_router_.get(), profile_, line_number, error); |
161 } | 161 } |
162 | 162 |
163 void ChromeNetworkDelegate::OnAuthRequired( | 163 int ChromeNetworkDelegate::OnAuthRequired( |
164 net::URLRequest* request, | 164 net::URLRequest* request, |
165 const net::AuthChallengeInfo& auth_info) { | 165 const net::AuthChallengeInfo& auth_info, |
166 ExtensionWebRequestEventRouter::GetInstance()->OnAuthRequired( | 166 net::CompletionCallback* callback, |
167 profile_, extension_info_map_.get(), request, auth_info); | 167 net::AuthCredentials* credentials) { |
| 168 return ExtensionWebRequestEventRouter::GetInstance()->OnAuthRequired( |
| 169 profile_, extension_info_map_.get(), request, auth_info, |
| 170 callback, credentials); |
168 } | 171 } |
OLD | NEW |