Chromium Code Reviews| 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/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/supports_user_data.h" | 9 #include "base/supports_user_data.h" |
| 10 #include "content/public/browser/javascript_dialog_manager.h" | 10 #include "content/public/browser/javascript_dialog_manager.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 43 const GURL& request_url, | 43 const GURL& request_url, |
| 44 const base::Callback<void(bool)>& callback, | 44 const base::Callback<void(bool)>& callback, |
| 45 bool* cancel_request) = 0; | 45 bool* cancel_request) = 0; |
| 46 | 46 |
| 47 virtual void RunJavaScriptDialog( | 47 virtual void RunJavaScriptDialog( |
| 48 content::JavaScriptMessageType message_type, | 48 content::JavaScriptMessageType message_type, |
| 49 const GURL& origin_url, | 49 const GURL& origin_url, |
| 50 const string16& message_text, | 50 const string16& message_text, |
| 51 const string16& default_prompt_text, | 51 const string16& default_prompt_text, |
| 52 const content::JavaScriptDialogManager::DialogClosedCallback& callback) | 52 const content::JavaScriptDialogManager::DialogClosedCallback& callback) |
| 53 = 0; | 53 = 0; |
|
mkosiba (inactive)
2013/10/17 10:27:45
uber-nit: please add a newline here.
sgurun-gerrit only
2013/12/06 00:17:48
Done.
| |
| 54 virtual void RunBeforeUnloadDialog( | 54 virtual void RunBeforeUnloadDialog( |
| 55 const GURL& origin_url, | 55 const GURL& origin_url, |
| 56 const string16& message_text, | 56 const string16& message_text, |
| 57 const content::JavaScriptDialogManager::DialogClosedCallback& callback) | 57 const content::JavaScriptDialogManager::DialogClosedCallback& callback) |
| 58 = 0; | 58 = 0; |
| 59 | |
| 60 virtual bool ShouldOverrideUrlLoading(const base::string16& url) = 0; | |
| 59 }; | 61 }; |
| 60 | 62 |
| 61 } // namespace android_webview | 63 } // namespace android_webview |
| 62 | 64 |
| 63 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ | 65 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ |
| OLD | NEW |