Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(446)

Side by Side Diff: chrome/browser/net/chrome_network_delegate.cc

Issue 8015004: webRequest.onAuthRequired listeners can provide authentication credentials. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 ExtensionProxyEventRouter::GetInstance()->OnPACScriptError( 169 ExtensionProxyEventRouter::GetInstance()->OnPACScriptError(
170 event_router_.get(), profile_, line_number, error); 170 event_router_.get(), profile_, line_number, error);
171 } 171 }
172 172
173 net::NetworkDelegate::AuthRequiredResponse 173 net::NetworkDelegate::AuthRequiredResponse
174 ChromeNetworkDelegate::OnAuthRequired( 174 ChromeNetworkDelegate::OnAuthRequired(
175 net::URLRequest* request, 175 net::URLRequest* request,
176 const net::AuthChallengeInfo& auth_info, 176 const net::AuthChallengeInfo& auth_info,
177 const AuthCallback& callback, 177 const AuthCallback& callback,
178 net::AuthCredentials* credentials) { 178 net::AuthCredentials* credentials) {
179 ExtensionWebRequestEventRouter::GetInstance()->OnAuthRequired( 179 return ExtensionWebRequestEventRouter::GetInstance()->OnAuthRequired(
180 profile_, extension_info_map_.get(), request, auth_info); 180 profile_, extension_info_map_.get(), request, auth_info,
181 return net::NetworkDelegate::AUTH_REQUIRED_RESPONSE_NO_ACTION; 181 callback, credentials);
182 } 182 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_webrequest_apitest.cc ('k') | chrome/common/extensions/api/extension_api.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698