OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include <memory> |
| 9 |
9 #include "base/supports_user_data.h" | 10 #include "base/supports_user_data.h" |
10 #include "content/public/browser/javascript_dialog_manager.h" | 11 #include "content/public/browser/javascript_dialog_manager.h" |
11 | 12 |
12 class GURL; | 13 class GURL; |
13 | 14 |
14 namespace content { | 15 namespace content { |
15 class ClientCertificateDelegate; | 16 class ClientCertificateDelegate; |
16 class WebContents; | 17 class WebContents; |
17 } | 18 } |
18 | 19 |
(...skipping 21 matching lines...) Expand all Loading... |
40 | 41 |
41 virtual ~AwContentsClientBridgeBase(); | 42 virtual ~AwContentsClientBridgeBase(); |
42 | 43 |
43 virtual void AllowCertificateError(int cert_error, | 44 virtual void AllowCertificateError(int cert_error, |
44 net::X509Certificate* cert, | 45 net::X509Certificate* cert, |
45 const GURL& request_url, | 46 const GURL& request_url, |
46 const base::Callback<void(bool)>& callback, | 47 const base::Callback<void(bool)>& callback, |
47 bool* cancel_request) = 0; | 48 bool* cancel_request) = 0; |
48 virtual void SelectClientCertificate( | 49 virtual void SelectClientCertificate( |
49 net::SSLCertRequestInfo* cert_request_info, | 50 net::SSLCertRequestInfo* cert_request_info, |
50 scoped_ptr<content::ClientCertificateDelegate> delegate) = 0; | 51 std::unique_ptr<content::ClientCertificateDelegate> delegate) = 0; |
51 | 52 |
52 virtual void RunJavaScriptDialog( | 53 virtual void RunJavaScriptDialog( |
53 content::JavaScriptMessageType message_type, | 54 content::JavaScriptMessageType message_type, |
54 const GURL& origin_url, | 55 const GURL& origin_url, |
55 const base::string16& message_text, | 56 const base::string16& message_text, |
56 const base::string16& default_prompt_text, | 57 const base::string16& default_prompt_text, |
57 const content::JavaScriptDialogManager::DialogClosedCallback& callback) | 58 const content::JavaScriptDialogManager::DialogClosedCallback& callback) |
58 = 0; | 59 = 0; |
59 | 60 |
60 virtual void RunBeforeUnloadDialog( | 61 virtual void RunBeforeUnloadDialog( |
61 const GURL& origin_url, | 62 const GURL& origin_url, |
62 const content::JavaScriptDialogManager::DialogClosedCallback& callback) | 63 const content::JavaScriptDialogManager::DialogClosedCallback& callback) |
63 = 0; | 64 = 0; |
64 | 65 |
65 virtual bool ShouldOverrideUrlLoading(const base::string16& url, | 66 virtual bool ShouldOverrideUrlLoading(const base::string16& url, |
66 bool has_user_gesture, | 67 bool has_user_gesture, |
67 bool is_redirect, | 68 bool is_redirect, |
68 bool is_main_frame) = 0; | 69 bool is_main_frame) = 0; |
69 }; | 70 }; |
70 | 71 |
71 } // namespace android_webview | 72 } // namespace android_webview |
72 | 73 |
73 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ | 74 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ |
OLD | NEW |