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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/supports_user_data.h" | 10 #include "base/supports_user_data.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 virtual void RunBeforeUnloadDialog( | 64 virtual void RunBeforeUnloadDialog( |
65 const GURL& origin_url, | 65 const GURL& origin_url, |
66 const content::JavaScriptDialogManager::DialogClosedCallback& callback) | 66 const content::JavaScriptDialogManager::DialogClosedCallback& callback) |
67 = 0; | 67 = 0; |
68 | 68 |
69 virtual bool ShouldOverrideUrlLoading(const base::string16& url, | 69 virtual bool ShouldOverrideUrlLoading(const base::string16& url, |
70 bool has_user_gesture, | 70 bool has_user_gesture, |
71 bool is_redirect, | 71 bool is_redirect, |
72 bool is_main_frame) = 0; | 72 bool is_main_frame) = 0; |
| 73 |
| 74 virtual void NewDownload(const GURL& url, |
| 75 const std::string& user_agent, |
| 76 const std::string& content_disposition, |
| 77 const std::string& mime_type, |
| 78 int64_t content_length) = 0; |
73 }; | 79 }; |
74 | 80 |
75 } // namespace android_webview | 81 } // namespace android_webview |
76 | 82 |
77 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ | 83 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ |
OLD | NEW |