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

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

Issue 12091111: Implement Webviewclient.onReceivedSslError (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor fix 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) 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 #ifndef ANDROID_WEBVIEW_BROWSER_AW_CERTIFICATE_ERROR_HANDLER_BASE_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_CERTIFICATE_ERROR_HANDLER_BASE_H_
7
8 #include "base/callback_forward.h"
9
10 class GURL;
11
12 namespace net {
13 class X509Certificate;
14 }
15
16 namespace android_webview {
17
18 // browser/ layer interface for AwCertificateErrorHandler, which is implemented
19 // in the native/ layer, due to layering.
20 class AwCertificateErrorHandlerBase {
boliu 2013/02/01 20:03:23 document copiously
sgurun-gerrit only 2013/02/01 22:08:00 Done.
21 public:
22 static AwCertificateErrorHandlerBase* FromID(int render_process_id,
23 int render_view_id);
24 virtual ~AwCertificateErrorHandlerBase();
25
26 virtual void AllowCertificateError(int cert_error,
27 net::X509Certificate* cert,
28 const GURL& request_url,
29 const base::Callback<void(bool)>& callback,
30 bool* cancel_request) = 0;
31 };
boliu 2013/02/01 20:03:23 Consider adding DISALLOW_COPY_AND_ASSIGN
sgurun-gerrit only 2013/02/01 22:08:00 just curious. do we need this in a pure abstract c
boliu 2013/02/01 23:07:13 Good point. No
32
33 } // namespace android_webview
34
35 #endif // ANDROID_WEBVIEW_BROWSER_AW_CERTIFICATE_ERROR_HANDLER_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698