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

Side by Side Diff: android_webview/browser/aw_contents_client_bridge_base.h

Issue 12091111: Implement Webviewclient.onReceivedSslError (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile issues 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 #ifndef ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_
7
8 #include "base/callback_forward.h"
9 #include "base/supports_user_data.h"
10
11 class GURL;
12
13 namespace content {
14 class WebContents;
15 }
16
17 namespace net {
18 class X509Certificate;
19 }
20
21 namespace android_webview {
22
23 // browser/ layer interface for AwContensClientBridge, which is implemented
24 // in the native/ layer, due to layering. The implementor of the base class
benm (inactive) 2013/02/25 12:16:38 does "browser/ layer interface for AwContentsClien
sgurun-gerrit only 2013/02/25 19:45:22 yep. done. On 2013/02/25 12:16:38, benm wrote:
25 // plumbs the request to the Java side and eventually to the webviewclient. This
26 // layering hides the details of native/ from browser/ layer.
27 class AwContentsClientBridgeBase {
28 public:
29 // Adds the handler to the UserData registry.
30 static void Associate(content::WebContents* web_contents,
31 AwContentsClientBridgeBase* handler);
32 static AwContentsClientBridgeBase* FromWebContents(
33 content::WebContents* web_contents);
34 static AwContentsClientBridgeBase* FromID(int render_process_id,
35 int render_view_id);
36
37 virtual ~AwContentsClientBridgeBase();
38
39 virtual void AllowCertificateError(int cert_error,
40 net::X509Certificate* cert,
41 const GURL& request_url,
42 const base::Callback<void(bool)>& callback,
43 bool* cancel_request) = 0;
44 };
45
46 } // namespace android_webview
47
48 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698