From ea114727620483755ebecf7b3fe4e7f9d50316e4 Mon Sep 17 00:00:00 2001 From: "darin@chromium.org" Date: Mon, 12 Mar 2012 01:11:25 +0000 Subject: Add content/public/browser/resource_dispatcher_host.h R=jam@chromium.org TBR=willchan@chromium.org,mirandac@chromium.org,ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/9648020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126089 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/ssl/ssl_client_auth_handler.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'content/browser/ssl/ssl_client_auth_handler.cc') diff --git a/content/browser/ssl/ssl_client_auth_handler.cc b/content/browser/ssl/ssl_client_auth_handler.cc index 11a43ba..9572d80 100644 --- a/content/browser/ssl/ssl_client_auth_handler.cc +++ b/content/browser/ssl/ssl_client_auth_handler.cc @@ -5,7 +5,6 @@ #include "content/browser/ssl/ssl_client_auth_handler.h" #include "base/bind.h" -#include "content/browser/renderer_host/resource_dispatcher_host.h" #include "content/browser/renderer_host/resource_request_info_impl.h" #include "content/public/browser/browser_thread.h" #include "content/public/browser/content_browser_client.h" @@ -15,6 +14,7 @@ #include "net/url_request/url_request_context.h" using content::BrowserThread; +using content::ResourceRequestInfo; using content::ResourceRequestInfoImpl; SSLClientAuthHandler::SSLClientAuthHandler( @@ -38,12 +38,13 @@ void SSLClientAuthHandler::OnRequestCancelled() { void SSLClientAuthHandler::SelectCertificate() { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); + DCHECK(request_); int render_process_host_id; int render_view_host_id; - if (!ResourceDispatcherHost::RenderViewForRequest(request_, - &render_process_host_id, - &render_view_host_id)) + if (!ResourceRequestInfo::ForRequest(request_)->GetAssociatedRenderView( + &render_process_host_id, + &render_view_host_id)) NOTREACHED(); // If the RVH does not exist by the time this task gets run, then the task @@ -78,7 +79,7 @@ void SSLClientAuthHandler::DoCertificateSelected(net::X509Certificate* cert) { request_->ContinueWithCertificate(cert); ResourceRequestInfoImpl* info = - ResourceDispatcherHost::InfoForRequest(request_); + ResourceRequestInfoImpl::ForRequest(request_); if (info) info->set_ssl_client_auth_handler(NULL); -- cgit v1.1