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

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

Issue 11186010: Update geolocation infobar to handle Android system settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updates 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_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 class GoogleLocationSettingsHelper;
10 11
11 // Android-specific geolocation permission flow, taking into account the 12 // Android-specific geolocation permission flow, taking into account the
12 // Google Location Settings, if available. 13 // Google Location Settings, if available.
13 class ChromeGeolocationPermissionContextAndroid 14 class ChromeGeolocationPermissionContextAndroid
14 : public ChromeGeolocationPermissionContext { 15 : public ChromeGeolocationPermissionContext {
15 16
16 public: 17 public:
17 explicit ChromeGeolocationPermissionContextAndroid(Profile* profile); 18 explicit ChromeGeolocationPermissionContextAndroid(Profile* profile);
18 19
19 private: 20 private:
20 friend class ChromeGeolocationPermissionContext; 21 friend class ChromeGeolocationPermissionContext;
21 22
22 // ChromeGeolocationPermissionContext implementation: 23 // ChromeGeolocationPermissionContext implementation:
23 virtual void DecidePermission( 24 virtual void DecidePermission(
24 int render_process_id, 25 int render_process_id,
25 int render_view_id, 26 int render_view_id,
26 int bridge_id, 27 int bridge_id,
27 const GURL& requesting_frame, 28 const GURL& requesting_frame,
28 const GURL& embedder, 29 const GURL& embedder,
29 base::Callback<void(bool)> callback) OVERRIDE; 30 base::Callback<void(bool)> callback) OVERRIDE;
30 31
32 virtual void PermissionDecided(int render_process_id,
33 int render_view_id,
34 int bridge_id,
35 const GURL& requesting_frame,
36 const GURL& embedder,
37 base::Callback<void(bool)> callback,
38 bool allowed) OVERRIDE;
39
40 scoped_ptr<GoogleLocationSettingsHelper> google_location_settings_helper_;
41
31 DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationPermissionContextAndroid); 42 DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationPermissionContextAndroid);
32 }; 43 };
33 44
34 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDR OID_H_ 45 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDR OID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698