OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
6 #define ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 6 #define ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include "android_webview/browser/aw_web_preferences_populater.h" | 8 #include "android_webview/browser/aw_web_preferences_populater.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 virtual blink::WebNotificationPresenter::Permission | 112 virtual blink::WebNotificationPresenter::Permission |
113 CheckDesktopNotificationPermission( | 113 CheckDesktopNotificationPermission( |
114 const GURL& source_url, | 114 const GURL& source_url, |
115 content::ResourceContext* context, | 115 content::ResourceContext* context, |
116 int render_process_id) OVERRIDE; | 116 int render_process_id) OVERRIDE; |
117 virtual void ShowDesktopNotification( | 117 virtual void ShowDesktopNotification( |
118 const content::ShowDesktopNotificationHostMsgParams& params, | 118 const content::ShowDesktopNotificationHostMsgParams& params, |
119 content::RenderFrameHost* render_frame_host, | 119 content::RenderFrameHost* render_frame_host, |
120 content::DesktopNotificationDelegate* delegate, | 120 content::DesktopNotificationDelegate* delegate, |
121 base::Closure* cancel_callback) OVERRIDE; | 121 base::Closure* cancel_callback) OVERRIDE; |
| 122 virtual void RequestGeolocationPermission( |
| 123 content::WebContents* web_contents, |
| 124 int bridge_id, |
| 125 const GURL& requesting_frame, |
| 126 bool user_gesture, |
| 127 base::Callback<void(bool)> result_callback, |
| 128 base::Closure* cancel_callback) OVERRIDE; |
122 virtual bool CanCreateWindow(const GURL& opener_url, | 129 virtual bool CanCreateWindow(const GURL& opener_url, |
123 const GURL& opener_top_level_frame_url, | 130 const GURL& opener_top_level_frame_url, |
124 const GURL& source_origin, | 131 const GURL& source_origin, |
125 WindowContainerType container_type, | 132 WindowContainerType container_type, |
126 const GURL& target_url, | 133 const GURL& target_url, |
127 const content::Referrer& referrer, | 134 const content::Referrer& referrer, |
128 WindowOpenDisposition disposition, | 135 WindowOpenDisposition disposition, |
129 const blink::WebWindowFeatures& features, | 136 const blink::WebWindowFeatures& features, |
130 bool user_gesture, | 137 bool user_gesture, |
131 bool opener_suppressed, | 138 bool opener_suppressed, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 scoped_ptr<AwWebPreferencesPopulater> preferences_populater_; | 177 scoped_ptr<AwWebPreferencesPopulater> preferences_populater_; |
171 | 178 |
172 JniDependencyFactory* native_factory_; | 179 JniDependencyFactory* native_factory_; |
173 | 180 |
174 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); | 181 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); |
175 }; | 182 }; |
176 | 183 |
177 } // namespace android_webview | 184 } // namespace android_webview |
178 | 185 |
179 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 186 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |