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_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_ |
6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "android_webview/browser/aw_contents_client_bridge_base.h" | 10 #include "android_webview/browser/aw_contents_client_bridge_base.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 void RunJavaScriptDialog( | 45 void RunJavaScriptDialog( |
46 content::JavaScriptMessageType message_type, | 46 content::JavaScriptMessageType message_type, |
47 const GURL& origin_url, | 47 const GURL& origin_url, |
48 const base::string16& message_text, | 48 const base::string16& message_text, |
49 const base::string16& default_prompt_text, | 49 const base::string16& default_prompt_text, |
50 const content::JavaScriptDialogManager::DialogClosedCallback& callback) | 50 const content::JavaScriptDialogManager::DialogClosedCallback& callback) |
51 override; | 51 override; |
52 void RunBeforeUnloadDialog( | 52 void RunBeforeUnloadDialog( |
53 const GURL& origin_url, | 53 const GURL& origin_url, |
54 const base::string16& message_text, | |
55 const content::JavaScriptDialogManager::DialogClosedCallback& callback) | 54 const content::JavaScriptDialogManager::DialogClosedCallback& callback) |
56 override; | 55 override; |
57 bool ShouldOverrideUrlLoading(const base::string16& url, | 56 bool ShouldOverrideUrlLoading(const base::string16& url, |
58 bool has_user_gesture, | 57 bool has_user_gesture, |
59 bool is_redirect, | 58 bool is_redirect, |
60 bool is_main_frame) override; | 59 bool is_main_frame) override; |
61 | 60 |
62 // Methods called from Java. | 61 // Methods called from Java. |
63 void ProceedSslError(JNIEnv* env, | 62 void ProceedSslError(JNIEnv* env, |
64 const base::android::JavaRef<jobject>& obj, | 63 const base::android::JavaRef<jobject>& obj, |
(...skipping 24 matching lines...) Expand all Loading... |
89 // doesn't provide Release, so ownership is managed manually. | 88 // doesn't provide Release, so ownership is managed manually. |
90 IDMap<content::ClientCertificateDelegate> | 89 IDMap<content::ClientCertificateDelegate> |
91 pending_client_cert_request_delegates_; | 90 pending_client_cert_request_delegates_; |
92 }; | 91 }; |
93 | 92 |
94 bool RegisterAwContentsClientBridge(JNIEnv* env); | 93 bool RegisterAwContentsClientBridge(JNIEnv* env); |
95 | 94 |
96 } // namespace android_webview | 95 } // namespace android_webview |
97 | 96 |
98 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_ | 97 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_ |
OLD | NEW |