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

Side by Side Diff: trunk/src/chrome/browser/geolocation/geolocation_infobar_delegate_android.h

Issue 102163002: Revert 238283 "Infobar system refactor." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years 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_INFOBAR_DELEGATE_ANDROID_H_ 5 #ifndef CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_DELEGATE_ANDROID_H_
6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_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_infobar_delegate.h" 9 #include "chrome/browser/geolocation/geolocation_infobar_delegate.h"
10 10
11 class GoogleLocationSettingsHelper; 11 class GoogleLocationSettingsHelper;
12 12
13 class GeolocationInfoBarDelegateAndroid : public GeolocationInfoBarDelegate { 13 class GeolocationInfoBarDelegateAndroid : public GeolocationInfoBarDelegate {
14 public: 14 public:
15 GeolocationInfoBarDelegateAndroid( 15 GeolocationInfoBarDelegateAndroid(
16 InfoBarService* infobar_service,
16 PermissionQueueController* controller, 17 PermissionQueueController* controller,
17 const PermissionRequestID& id, 18 const PermissionRequestID& id,
18 const GURL& requesting_frame_url, 19 const GURL& requesting_frame_url,
19 int contents_unique_id, 20 int contents_unique_id,
20 const std::string& display_languages); 21 const std::string& display_languages);
21 22
22 private: 23 private:
23 virtual ~GeolocationInfoBarDelegateAndroid(); 24 virtual ~GeolocationInfoBarDelegateAndroid();
24 25
25 // ConfirmInfoBarDelegate: 26 // ConfirmInfoBarDelegate:
26 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; 27 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
27 virtual bool Accept() OVERRIDE; 28 virtual bool Accept() OVERRIDE;
28 29
29 scoped_ptr<GoogleLocationSettingsHelper> google_location_settings_helper_; 30 scoped_ptr<GoogleLocationSettingsHelper> google_location_settings_helper_;
30 31
31 DISALLOW_COPY_AND_ASSIGN(GeolocationInfoBarDelegateAndroid); 32 DISALLOW_COPY_AND_ASSIGN(GeolocationInfoBarDelegateAndroid);
32 }; 33 };
33 34
34 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_DELEGATE_ANDROID_H_ 35 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_DELEGATE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698