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

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: address code review 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() {
boliu 2013/02/01 23:07:13 This needs to be in browser/ in the matching .cc f
sgurun-gerrit only 2013/02/02 01:01:10 I have chatted with Martin this morning and we ske
sgurun-gerrit only 2013/02/02 01:08:11 actually thinking about this again, I think cc and
14 }
15
16 //static
17 AwCertificateErrorHandlerBase* AwCertificateErrorHandlerBase::FromID(
boliu 2013/02/01 23:07:13 Total stylistic issue: Normally we would put this
sgurun-gerrit only 2013/02/02 01:01:10 see above. On 2013/02/01 23:07:13, boliu wrote:
boliu 2013/02/02 01:10:42 Oh, if Martin already looked over the layering pro
sgurun-gerrit only 2013/02/02 03:16:10 Done.
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 DCHECK(host);
boliu 2013/02/01 23:07:13 Sorry to turn this around on you again, but now th
sgurun-gerrit only 2013/02/02 01:01:10 I have seen this pattern in multiple places, and I
24 content::WebContents* web_contents =
25 content::WebContents::FromRenderViewHost(host);
26 DCHECK(web_contents);
27 return static_cast<AwCertificateErrorHandlerBase*>
28 (AwContents::FromWebContents(web_contents));
29 }
30
31 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698