OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "android_webview/browser/aw_certificate_error_handler_base.h" | |
6 | |
7 #include "android_webview/native/aw_contents.h" | |
8 #include "content/public/browser/render_view_host.h" | |
9 #include "content/public/browser/web_contents.h" | |
10 | |
11 namespace android_webview { | |
12 | |
13 AwCertificateErrorHandlerBase::~AwCertificateErrorHandlerBase() { | |
14 } | |
15 | |
16 //static | |
17 AwCertificateErrorHandlerBase* AwCertificateErrorHandlerBase::FromID( | |
18 int render_process_id, | |
19 int render_view_id) { | |
20 | |
21 const content::RenderViewHost* host = | |
boliu
2013/02/01 20:03:23
DCHECK every step of the way for null values.
Kristian Monsen
2013/02/01 20:51:12
Just curious, what does that really add? It will c
boliu
2013/02/01 20:56:59
Benefit is that (especially with the crazy optimiz
sgurun-gerrit only
2013/02/01 22:08:00
Done.
| |
22 content::RenderViewHost::FromID(render_process_id, render_view_id); | |
23 content::WebContents* web_contents = | |
24 content::WebContents::FromRenderViewHost(host); | |
25 return static_cast<AwCertificateErrorHandlerBase*> | |
26 (AwContents::FromWebContents(web_contents)); | |
27 } | |
28 | |
29 } // namespace android_webview | |
OLD | NEW |