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

Side by Side Diff: android_webview/native/aw_certificate_error_handler_base.cc

Issue 12091111: Implement Webviewclient.onReceivedSslError (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated copyrights Created 7 years, 10 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
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698