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

Side by Side Diff: chrome/browser/geolocation/chrome_geolocation_permission_context.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_H_ 5 #ifndef CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_H_
6 #define CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_H_ 6 #define CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/geolocation/geolocation_infobar_queue_controller.h" 11 #include "chrome/browser/geolocation/geolocation_infobar_queue_controller.h"
12 #include "chrome/browser/prefs/pref_service.h"
13 #include "chrome/common/pref_names.h"
12 #include "content/public/browser/geolocation_permission_context.h" 14 #include "content/public/browser/geolocation_permission_context.h"
13 15
14 class Profile; 16 class Profile;
15 17
16 // Chrome specific implementation of GeolocationPermissionContext; manages 18 // Chrome specific implementation of GeolocationPermissionContext; manages
17 // Geolocation permissions flow, and delegates UI handling via 19 // Geolocation permissions flow, and delegates UI handling via
18 // GeolocationInfoBarQueueController. 20 // GeolocationInfoBarQueueController.
19 class ChromeGeolocationPermissionContext 21 class ChromeGeolocationPermissionContext
20 : public content::GeolocationPermissionContext { 22 : public content::GeolocationPermissionContext {
21 23
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // This must only be accessed from the UI thread. 93 // This must only be accessed from the UI thread.
92 Profile* const profile_; 94 Profile* const profile_;
93 95
94 scoped_ptr<GeolocationInfoBarQueueController> 96 scoped_ptr<GeolocationInfoBarQueueController>
95 geolocation_infobar_queue_controller_; 97 geolocation_infobar_queue_controller_;
96 98
97 DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationPermissionContext); 99 DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationPermissionContext);
98 }; 100 };
99 101
100 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_H_ 102 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698