OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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 = |
| 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 |