summaryrefslogtreecommitdiffstats
path: root/chrome/browser/geolocation/geolocation_infobar_delegate_android.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-16 23:17:40 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-16 23:17:40 +0000
commit279bb409e122fc5069dfc173c110565ade2ca9b8 (patch)
tree75beeeef6775d6bc9daff08f4d7d3192d8e306b5 /chrome/browser/geolocation/geolocation_infobar_delegate_android.h
parent2788083f4674b0ba49c52d0df47a19f064d32b84 (diff)
downloadchromium_src-279bb409e122fc5069dfc173c110565ade2ca9b8.zip
chromium_src-279bb409e122fc5069dfc173c110565ade2ca9b8.tar.gz
chromium_src-279bb409e122fc5069dfc173c110565ade2ca9b8.tar.bz2
GeolocationConfirmInfoBarDelegate* -> GeolocationInfoBarDelegate*, for consistency with other infobars and brevity.
BUG=none TEST=none Review URL: https://codereview.chromium.org/11785030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194478 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/geolocation/geolocation_infobar_delegate_android.h')
-rw-r--r--chrome/browser/geolocation/geolocation_infobar_delegate_android.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/chrome/browser/geolocation/geolocation_infobar_delegate_android.h b/chrome/browser/geolocation/geolocation_infobar_delegate_android.h
new file mode 100644
index 0000000..92f4f51
--- /dev/null
+++ b/chrome/browser/geolocation/geolocation_infobar_delegate_android.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_DELEGATE_ANDROID_H_
+#define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_DELEGATE_ANDROID_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/geolocation/geolocation_infobar_delegate.h"
+
+class GoogleLocationSettingsHelper;
+
+class GeolocationInfoBarDelegateAndroid: public GeolocationInfoBarDelegate {
+ public:
+ GeolocationInfoBarDelegateAndroid(
+ InfoBarService* infobar_service,
+ GeolocationInfoBarQueueController* controller,
+ const GeolocationPermissionRequestID& id,
+ const GURL& requesting_frame_url,
+ const std::string& display_languages);
+ virtual ~GeolocationInfoBarDelegateAndroid();
+
+ private:
+ // ConfirmInfoBarDelegate:
+ virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
+ virtual bool Accept() OVERRIDE;
+
+ scoped_ptr<GoogleLocationSettingsHelper> google_location_settings_helper_;
+
+};
+
+#endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_INFOBAR_DELEGATE_ANDROID_H_