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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 virtual blink::WebNotificationPermission | 111 virtual blink::WebNotificationPermission |
112 CheckDesktopNotificationPermission( | 112 CheckDesktopNotificationPermission( |
113 const GURL& source_url, | 113 const GURL& source_url, |
114 content::ResourceContext* context, | 114 content::ResourceContext* context, |
115 int render_process_id) override; | 115 int render_process_id) override; |
116 virtual void ShowDesktopNotification( | 116 virtual void ShowDesktopNotification( |
117 const content::ShowDesktopNotificationHostMsgParams& params, | 117 const content::ShowDesktopNotificationHostMsgParams& params, |
118 content::RenderFrameHost* render_frame_host, | 118 content::RenderFrameHost* render_frame_host, |
119 scoped_ptr<content::DesktopNotificationDelegate> delegate, | 119 scoped_ptr<content::DesktopNotificationDelegate> delegate, |
120 base::Closure* cancel_callback) override; | 120 base::Closure* cancel_callback) override; |
121 virtual void RequestGeolocationPermission( | 121 virtual void RequestPermission( |
| 122 content::PermissionType permission, |
122 content::WebContents* web_contents, | 123 content::WebContents* web_contents, |
123 int bridge_id, | 124 int bridge_id, |
124 const GURL& requesting_frame, | 125 const GURL& requesting_frame, |
125 bool user_gesture, | 126 bool user_gesture, |
126 const base::Callback<void(bool)>& result_callback) override; | 127 const base::Callback<void(bool)>& result_callback) override; |
127 virtual void CancelGeolocationPermissionRequest( | 128 virtual void CancelPermissionRequest(content::PermissionType permission, |
128 content::WebContents* web_contents, | 129 content::WebContents* web_contents, |
129 int bridge_id, | 130 int bridge_id, |
130 const GURL& requesting_frame) override; | 131 const GURL& origin) override; |
131 virtual void RequestMidiSysExPermission( | |
132 content::WebContents* web_contents, | |
133 int bridge_id, | |
134 const GURL& requesting_frame, | |
135 bool user_gesture, | |
136 base::Callback<void(bool)> result_callback, | |
137 base::Closure* cancel_callback) override; | |
138 virtual void RequestProtectedMediaIdentifierPermission( | |
139 content::WebContents* web_contents, | |
140 const GURL& origin, | |
141 base::Callback<void(bool)> result_callback, | |
142 base::Closure* cancel_callback) override; | |
143 virtual bool CanCreateWindow(const GURL& opener_url, | 132 virtual bool CanCreateWindow(const GURL& opener_url, |
144 const GURL& opener_top_level_frame_url, | 133 const GURL& opener_top_level_frame_url, |
145 const GURL& source_origin, | 134 const GURL& source_origin, |
146 WindowContainerType container_type, | 135 WindowContainerType container_type, |
147 const GURL& target_url, | 136 const GURL& target_url, |
148 const content::Referrer& referrer, | 137 const content::Referrer& referrer, |
149 WindowOpenDisposition disposition, | 138 WindowOpenDisposition disposition, |
150 const blink::WebWindowFeatures& features, | 139 const blink::WebWindowFeatures& features, |
151 bool user_gesture, | 140 bool user_gesture, |
152 bool opener_suppressed, | 141 bool opener_suppressed, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 scoped_ptr<AwWebPreferencesPopulater> preferences_populater_; | 176 scoped_ptr<AwWebPreferencesPopulater> preferences_populater_; |
188 | 177 |
189 JniDependencyFactory* native_factory_; | 178 JniDependencyFactory* native_factory_; |
190 | 179 |
191 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); | 180 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); |
192 }; | 181 }; |
193 | 182 |
194 } // namespace android_webview | 183 } // namespace android_webview |
195 | 184 |
196 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 185 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |