| 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_GEOLOCATION_INFOBAR_QUEUE_CONTROLLER_ANDROID_
H_ | 5 #ifndef CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_QUEUE_CONTROLLER_ANDROID_
H_ |
| 6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_QUEUE_CONTROLLER_ANDROID_
H_ | 6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_QUEUE_CONTROLLER_ANDROID_
H_ |
| 7 | 7 |
| 8 #include "chrome/browser/geolocation/geolocation_infobar_queue_controller.h" | 8 #include "chrome/browser/geolocation/geolocation_infobar_queue_controller.h" |
| 9 | 9 |
| 10 class GoogleLocationSettingsHelper; |
| 11 |
| 10 // Android-specific geolocation infobar queue controller. As with | 12 // Android-specific geolocation infobar queue controller. As with |
| 11 // GeolocationInfoBarQueueController, this class is owned by | 13 // GeolocationInfoBarQueueController, this class is owned by |
| 12 // ChromeGeolocationPermissionContextAndroid. | 14 // ChromeGeolocationPermissionContextAndroid. |
| 13 class GeolocationInfoBarQueueControllerAndroid | 15 class GeolocationInfoBarQueueControllerAndroid |
| 14 : public GeolocationInfoBarQueueController { | 16 : public GeolocationInfoBarQueueController { |
| 15 | 17 |
| 16 public: | 18 public: |
| 17 explicit GeolocationInfoBarQueueControllerAndroid( | 19 explicit GeolocationInfoBarQueueControllerAndroid( |
| 18 Profile* profile); | 20 Profile* profile, |
| 21 GoogleLocationSettingsHelper* helper); |
| 19 | 22 |
| 20 private: | 23 private: |
| 21 virtual GeolocationConfirmInfoBarDelegate* CreateInfoBarDelegate( | 24 virtual GeolocationConfirmInfoBarDelegate* CreateInfoBarDelegate( |
| 22 InfoBarTabHelper* infobar_helper, | 25 InfoBarTabHelper* infobar_helper, |
| 23 GeolocationInfoBarQueueController* controller, | 26 GeolocationInfoBarQueueController* controller, |
| 24 int render_process_id, | 27 int render_process_id, |
| 25 int render_view_id, | 28 int render_view_id, |
| 26 int bridge_id, | 29 int bridge_id, |
| 27 const GURL& requesting_frame_url, | 30 const GURL& requesting_frame_url, |
| 28 const std::string& display_languages) OVERRIDE; | 31 const std::string& display_languages) OVERRIDE; |
| 32 |
| 33 // ChromeGeolocationPermissionContextAndroid owns both this class |
| 34 // and this instance of google_location_settings_helper_. |
| 35 GoogleLocationSettingsHelper* google_location_settings_helper_; |
| 29 }; | 36 }; |
| 30 | 37 |
| 31 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_QUEUE_CONTROLLER_ANDRO
ID_H__ | 38 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_QUEUE_CONTROLLER_ANDRO
ID_H__ |
| OLD | NEW |