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 CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID
_H_ | 5 #ifndef CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID
_H_ |
6 #define CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID
_H_ | 6 #define CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID
_H_ |
7 | 7 |
8 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" | 8 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" |
9 | 9 |
| 10 class GoogleLocationSettingsHelper; |
10 | 11 |
11 // Android-specific geolocation permission flow, taking into account the | 12 // Android-specific geolocation permission flow, taking into account the |
12 // Google Location Settings, if available. | 13 // Google Location Settings, if available. |
13 class ChromeGeolocationPermissionContextAndroid | 14 class ChromeGeolocationPermissionContextAndroid |
14 : public ChromeGeolocationPermissionContext { | 15 : public ChromeGeolocationPermissionContext { |
15 | 16 |
16 private: | 17 private: |
17 friend class ChromeGeolocationPermissionContext; | 18 friend class ChromeGeolocationPermissionContext; |
18 explicit ChromeGeolocationPermissionContextAndroid(Profile* profile); | 19 explicit ChromeGeolocationPermissionContextAndroid(Profile* profile); |
19 | 20 |
20 virtual void DecidePermission( | 21 virtual void DecidePermission( |
21 int render_process_id, | 22 int render_process_id, |
22 int render_view_id, | 23 int render_view_id, |
23 int bridge_id, | 24 int bridge_id, |
24 const GURL& requesting_frame, | 25 const GURL& requesting_frame, |
25 const GURL& embedder, | 26 const GURL& embedder, |
26 base::Callback<void(bool)> callback) OVERRIDE; | 27 base::Callback<void(bool)> callback) OVERRIDE; |
27 | 28 |
28 virtual void PermissionDecided(int render_process_id, | 29 virtual void PermissionDecided(int render_process_id, |
29 int render_view_id, | 30 int render_view_id, |
30 int bridge_id, | 31 int bridge_id, |
31 const GURL& requesting_frame, | 32 const GURL& requesting_frame, |
32 const GURL& embedder, | 33 const GURL& embedder, |
33 base::Callback<void(bool)> callback, | 34 base::Callback<void(bool)> callback, |
34 bool allowed) OVERRIDE; | 35 bool allowed) OVERRIDE; |
35 | 36 |
36 virtual GeolocationInfoBarQueueController* CreateQueueController() OVERRIDE; | 37 virtual GeolocationInfoBarQueueController* CreateQueueController() OVERRIDE; |
| 38 |
| 39 scoped_ptr<GoogleLocationSettingsHelper> google_location_settings_helper_; |
37 }; | 40 }; |
38 | 41 |
39 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDR
OID_H_ | 42 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDR
OID_H_ |
OLD | NEW |