Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: chrome/browser/geolocation/geolocation_confirm_infobar_delegate_android.h

Issue 11186010: Update geolocation infobar to handle Android system settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix conflict Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_CONFIRM_INFOBAR_DELEGATE_ANDROID_ H_
6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_CONFIRM_INFOBAR_DELEGATE_ANDROID_ H_ 6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_CONFIRM_INFOBAR_DELEGATE_ANDROID_ H_
7 7
8 #include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h" 8 #include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h"
9 9
10 class GoogleLocationSettingsHelper;
11
10 class GeolocationConfirmInfoBarDelegateAndroid 12 class GeolocationConfirmInfoBarDelegateAndroid
11 : public GeolocationConfirmInfoBarDelegate { 13 : public GeolocationConfirmInfoBarDelegate {
12 public: 14 public:
13 GeolocationConfirmInfoBarDelegateAndroid( 15 GeolocationConfirmInfoBarDelegateAndroid(
16 GoogleLocationSettingsHelper* google_location_settings_helper,
14 InfoBarTabHelper* infobar_helper, 17 InfoBarTabHelper* infobar_helper,
15 GeolocationInfoBarQueueController* controller, 18 GeolocationInfoBarQueueController* controller,
16 int render_process_id, 19 int render_process_id,
17 int render_view_id, 20 int render_view_id,
18 int bridge_id, 21 int bridge_id,
19 const GURL& requesting_frame_url, 22 const GURL& requesting_frame_url,
20 const std::string& display_languages); 23 const std::string& display_languages);
21 24
22 private: 25 private:
23 // ConfirmInfoBarDelegate: 26 // ConfirmInfoBarDelegate:
24 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; 27 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
25 virtual bool Accept() OVERRIDE; 28 virtual bool Accept() OVERRIDE;
29
30 // We are guaranteed that the InfoBars and their delegates will be destroyed
31 // before ChromeGeolocationPermissionContextAndroid which owns this
32 // google_location_settings_helper_.
33 GoogleLocationSettingsHelper* google_location_settings_helper_;
26 }; 34 };
27 35
28 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_CONFIRM_INFOBAR_DELEGATE_ANDRO ID_H_ 36 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_CONFIRM_INFOBAR_DELEGATE_ANDRO ID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698