| Index: content/browser/ssl/ssl_manager.cc
|
| diff --git a/content/browser/ssl/ssl_manager.cc b/content/browser/ssl/ssl_manager.cc
|
| index 44e5df98418c89728fb2b6d54717acfab0e13321..7cba12d7bdce2defa7014102d114ac6110bc91ff 100644
|
| --- a/content/browser/ssl/ssl_manager.cc
|
| +++ b/content/browser/ssl/ssl_manager.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -31,26 +31,35 @@ using content::SSLStatus;
|
| using content::WebContents;
|
|
|
| // static
|
| -void SSLManager::OnSSLCertificateError(ResourceDispatcherHost* rdh,
|
| - net::URLRequest* request,
|
| +void SSLManager::OnSSLCertificateError(SSLErrorHandler::Delegate* delegate,
|
| + const content::GlobalRequestID& id,
|
| + const ResourceType::Type resource_type,
|
| + const GURL& url,
|
| + int render_process_id,
|
| + int render_view_id,
|
| const net::SSLInfo& ssl_info,
|
| bool fatal) {
|
| + DCHECK(delegate);
|
| DVLOG(1) << "OnSSLCertificateError() cert_error: "
|
| << net::MapCertStatusToNetError(ssl_info.cert_status)
|
| - << " url: " << request->url().spec()
|
| + << " id: " << id.child_id << "," << id.request_id
|
| + << " resource_type: " << resource_type
|
| + << " url: " << url
|
| + << " render_process_id: " << render_process_id
|
| + << " render_view_id: " << render_view_id
|
| << " cert_status: " << std::hex << ssl_info.cert_status;
|
|
|
| - ResourceDispatcherHostRequestInfo* info =
|
| - ResourceDispatcherHost::InfoForRequest(request);
|
| -
|
| // A certificate error occurred. Construct a SSLCertErrorHandler object and
|
| // hand it over to the UI thread for processing.
|
| BrowserThread::PostTask(
|
| BrowserThread::UI, FROM_HERE,
|
| base::Bind(&SSLCertErrorHandler::Dispatch,
|
| - new SSLCertErrorHandler(rdh,
|
| - request,
|
| - info->resource_type(),
|
| + new SSLCertErrorHandler(delegate,
|
| + id,
|
| + resource_type,
|
| + url,
|
| + render_process_id,
|
| + render_view_id,
|
| ssl_info,
|
| fatal)));
|
| }
|
|
|