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