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

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: Failed to upload Created 8 years, 1 month 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 "base/memory/scoped_ptr.h"
8 #include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h" 9 #include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h"
9 10
11 class GoogleLocationSettingsHelper;
12
10 class GeolocationConfirmInfoBarDelegateAndroid 13 class GeolocationConfirmInfoBarDelegateAndroid
11 : public GeolocationConfirmInfoBarDelegate { 14 : public GeolocationConfirmInfoBarDelegate {
12 public: 15 public:
13 GeolocationConfirmInfoBarDelegateAndroid( 16 GeolocationConfirmInfoBarDelegateAndroid(
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);
24 virtual ~GeolocationConfirmInfoBarDelegateAndroid();
21 25
22 private: 26 private:
23 // ConfirmInfoBarDelegate: 27 // ConfirmInfoBarDelegate:
24 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; 28 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
29 virtual bool Accept() OVERRIDE;
30
31 scoped_ptr<GoogleLocationSettingsHelper> google_location_settings_helper_;
25 }; 32 };
26 33
27 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_CONFIRM_INFOBAR_DELEGATE_ANDRO ID_H_ 34 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_CONFIRM_INFOBAR_DELEGATE_ANDRO ID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698