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_NATIVE_AW_GEOLOCATION_PERMISSION_CONTEXT_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_GEOLOCATION_PERMISSION_CONTEXT_H_ |
6 #define ANDROID_WEBVIEW_NATIVE_AW_GEOLOCATION_PERMISSION_CONTEXT_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_GEOLOCATION_PERMISSION_CONTEXT_H_ |
7 | 7 |
8 #include "content/public/browser/geolocation_permission_context.h" | 8 #include "content/public/browser/geolocation_permission_context.h" |
9 | 9 |
10 class GURL; | 10 class GURL; |
11 | 11 |
12 namespace android_webview { | 12 namespace android_webview { |
13 | 13 |
| 14 class AwBrowserContext; |
| 15 |
14 class AwGeolocationPermissionContext : | 16 class AwGeolocationPermissionContext : |
15 public content::GeolocationPermissionContext { | 17 public content::GeolocationPermissionContext { |
16 public: | 18 public: |
17 static content::GeolocationPermissionContext* Create(); | 19 static content::GeolocationPermissionContext* Create( |
| 20 AwBrowserContext* browser_context); |
18 | 21 |
19 // content::GeolocationPermissionContext implementation | 22 // content::GeolocationPermissionContext implementation |
20 virtual void RequestGeolocationPermission( | 23 virtual void RequestGeolocationPermission( |
21 int render_process_id, | 24 int render_process_id, |
22 int render_view_id, | 25 int render_view_id, |
23 int bridge_id, | 26 int bridge_id, |
24 const GURL& requesting_frame, | 27 const GURL& requesting_frame, |
25 base::Callback<void(bool)> callback) OVERRIDE; | 28 base::Callback<void(bool)> callback) OVERRIDE; |
26 virtual void CancelGeolocationPermissionRequest( | 29 virtual void CancelGeolocationPermissionRequest( |
27 int render_process_id, | 30 int render_process_id, |
(...skipping 15 matching lines...) Expand all Loading... |
43 void CancelGeolocationPermissionRequestOnUIThread( | 46 void CancelGeolocationPermissionRequestOnUIThread( |
44 int render_process_id, | 47 int render_process_id, |
45 int render_view_id, | 48 int render_view_id, |
46 int bridge_id, | 49 int bridge_id, |
47 const GURL& requesting_frame); | 50 const GURL& requesting_frame); |
48 }; | 51 }; |
49 | 52 |
50 } // namespace android_webview | 53 } // namespace android_webview |
51 | 54 |
52 #endif // ANDROID_WEBVIEW_NATIVE_AW_GEOLOCATION_PERMISSION_CONTEXT_H_ | 55 #endif // ANDROID_WEBVIEW_NATIVE_AW_GEOLOCATION_PERMISSION_CONTEXT_H_ |
OLD | NEW |