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

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

Issue 147543004: [Geolocation] Add permission bubble client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix android, rebase Created 6 years, 10 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_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID _H_ 5 #ifndef CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID _H_
6 #define CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID _H_ 6 #define CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID _H_
7 7
8 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" 8 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h"
9 9
10 namespace content {
11 class WebContents;
12 }
13
10 class GoogleLocationSettingsHelper; 14 class GoogleLocationSettingsHelper;
11 15
12 // Android-specific geolocation permission flow, taking into account the 16 // Android-specific geolocation permission flow, taking into account the
13 // Google Location Settings, if available. 17 // Google Location Settings, if available.
14 class ChromeGeolocationPermissionContextAndroid 18 class ChromeGeolocationPermissionContextAndroid
15 : public ChromeGeolocationPermissionContext { 19 : public ChromeGeolocationPermissionContext {
16 public: 20 public:
17 explicit ChromeGeolocationPermissionContextAndroid(Profile* profile); 21 explicit ChromeGeolocationPermissionContextAndroid(Profile* profile);
18 22
19 private: 23 private:
20 friend class ChromeGeolocationPermissionContext; 24 friend class ChromeGeolocationPermissionContext;
21 25
22 virtual ~ChromeGeolocationPermissionContextAndroid(); 26 virtual ~ChromeGeolocationPermissionContextAndroid();
23 27
24 // ChromeGeolocationPermissionContext implementation: 28 // ChromeGeolocationPermissionContext implementation:
25 virtual void DecidePermission(const PermissionRequestID& id, 29 virtual void DecidePermission(content::WebContents* web_contents,
30 const PermissionRequestID& id,
26 const GURL& requesting_frame, 31 const GURL& requesting_frame,
27 const GURL& embedder, 32 const GURL& embedder,
28 base::Callback<void(bool)> callback) OVERRIDE; 33 base::Callback<void(bool)> callback) OVERRIDE;
29 34
30 virtual void PermissionDecided(const PermissionRequestID& id, 35 virtual void PermissionDecided(const PermissionRequestID& id,
31 const GURL& requesting_frame, 36 const GURL& requesting_frame,
32 const GURL& embedder, 37 const GURL& embedder,
33 base::Callback<void(bool)> callback, 38 base::Callback<void(bool)> callback,
34 bool allowed) OVERRIDE; 39 bool allowed) OVERRIDE;
35 40
36 scoped_ptr<GoogleLocationSettingsHelper> google_location_settings_helper_; 41 scoped_ptr<GoogleLocationSettingsHelper> google_location_settings_helper_;
37 42
38 DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationPermissionContextAndroid); 43 DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationPermissionContextAndroid);
39 }; 44 };
40 45
41 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDR OID_H_ 46 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDR OID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698