| 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_CONFIRM_INFOBAR_DELEGATE_ANDROID_
H_ | 5 #ifndef CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_DELEGATE_ANDROID_H_ |
| 6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_CONFIRM_INFOBAR_DELEGATE_ANDROID_
H_ | 6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_DELEGATE_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h" | 9 #include "chrome/browser/geolocation/geolocation_infobar_delegate.h" |
| 10 | 10 |
| 11 class GoogleLocationSettingsHelper; | 11 class GoogleLocationSettingsHelper; |
| 12 | 12 |
| 13 class GeolocationConfirmInfoBarDelegateAndroid | 13 class GeolocationInfoBarDelegateAndroid: public GeolocationInfoBarDelegate { |
| 14 : public GeolocationConfirmInfoBarDelegate { | |
| 15 public: | 14 public: |
| 16 GeolocationConfirmInfoBarDelegateAndroid( | 15 GeolocationInfoBarDelegateAndroid( |
| 17 InfoBarService* infobar_service, | 16 InfoBarService* infobar_service, |
| 18 GeolocationInfoBarQueueController* controller, | 17 GeolocationInfoBarQueueController* controller, |
| 19 const GeolocationPermissionRequestID& id, | 18 const GeolocationPermissionRequestID& id, |
| 20 const GURL& requesting_frame_url, | 19 const GURL& requesting_frame_url, |
| 21 const std::string& display_languages); | 20 const std::string& display_languages); |
| 22 virtual ~GeolocationConfirmInfoBarDelegateAndroid(); | 21 virtual ~GeolocationInfoBarDelegateAndroid(); |
| 23 | 22 |
| 24 private: | 23 private: |
| 25 // ConfirmInfoBarDelegate: | 24 // ConfirmInfoBarDelegate: |
| 26 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; | 25 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; |
| 27 virtual bool Accept() OVERRIDE; | 26 virtual bool Accept() OVERRIDE; |
| 28 | 27 |
| 29 scoped_ptr<GoogleLocationSettingsHelper> google_location_settings_helper_; | 28 scoped_ptr<GoogleLocationSettingsHelper> google_location_settings_helper_; |
| 30 | 29 |
| 31 }; | 30 }; |
| 32 | 31 |
| 33 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_CONFIRM_INFOBAR_DELEGATE_ANDRO
ID_H_ | 32 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_DELEGATE_ANDROID_H_ |
| OLD | NEW |