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

Side by Side Diff: android_webview/native/aw_contents_client_bridge.h

Issue 24228003: Upstream ShouldOverrideUrlLoading changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changed a non-related line to keep chrome bots happy Created 7 years 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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const GURL& origin_url, 45 const GURL& origin_url,
46 const string16& message_text, 46 const string16& message_text,
47 const string16& default_prompt_text, 47 const string16& default_prompt_text,
48 const content::JavaScriptDialogManager::DialogClosedCallback& callback) 48 const content::JavaScriptDialogManager::DialogClosedCallback& callback)
49 OVERRIDE; 49 OVERRIDE;
50 virtual void RunBeforeUnloadDialog( 50 virtual void RunBeforeUnloadDialog(
51 const GURL& origin_url, 51 const GURL& origin_url,
52 const string16& message_text, 52 const string16& message_text,
53 const content::JavaScriptDialogManager::DialogClosedCallback& callback) 53 const content::JavaScriptDialogManager::DialogClosedCallback& callback)
54 OVERRIDE; 54 OVERRIDE;
55 virtual bool ShouldOverrideUrlLoading(const base::string16& url) OVERRIDE;
55 56
56 // Methods called from Java. 57 // Methods called from Java.
57 void ProceedSslError(JNIEnv* env, jobject obj, jboolean proceed, jint id); 58 void ProceedSslError(JNIEnv* env, jobject obj, jboolean proceed, jint id);
58 void ConfirmJsResult(JNIEnv*, jobject, int id, jstring prompt); 59 void ConfirmJsResult(JNIEnv*, jobject, int id, jstring prompt);
59 void CancelJsResult(JNIEnv*, jobject, int id); 60 void CancelJsResult(JNIEnv*, jobject, int id);
60 61
61 private: 62 private:
62 JavaObjectWeakGlobalRef java_ref_; 63 JavaObjectWeakGlobalRef java_ref_;
63 64
64 typedef const base::Callback<void(bool)> CertErrorCallback; 65 typedef const base::Callback<void(bool)> CertErrorCallback;
65 IDMap<CertErrorCallback, IDMapOwnPointer> pending_cert_error_callbacks_; 66 IDMap<CertErrorCallback, IDMapOwnPointer> pending_cert_error_callbacks_;
66 IDMap<content::JavaScriptDialogManager::DialogClosedCallback, IDMapOwnPointer> 67 IDMap<content::JavaScriptDialogManager::DialogClosedCallback, IDMapOwnPointer>
67 pending_js_dialog_callbacks_; 68 pending_js_dialog_callbacks_;
68 }; 69 };
69 70
70 bool RegisterAwContentsClientBridge(JNIEnv* env); 71 bool RegisterAwContentsClientBridge(JNIEnv* env);
71 72
72 } // namespace android_webview 73 } // namespace android_webview
73 74
74 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_ 75 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | android_webview/native/aw_contents_client_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698