diff options
author | bulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-11 13:08:52 +0000 |
---|---|---|
committer | bulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-11 13:08:52 +0000 |
commit | 8b4b84eee1eaa6a77c34f66f7278039004657896 (patch) | |
tree | d8ff62fa586a6dc4d5859453037e1821f2a89bc2 /chrome/browser/profile.h | |
parent | 5ea92a92e9fa26334db821da688d3c46e295d19c (diff) | |
download | chromium_src-8b4b84eee1eaa6a77c34f66f7278039004657896.zip chromium_src-8b4b84eee1eaa6a77c34f66f7278039004657896.tar.gz chromium_src-8b4b84eee1eaa6a77c34f66f7278039004657896.tar.bz2 |
Geolocation: checks pending requests with the same origin when receiving the infobar response.
Moves GeolocationPermissionContext from GeolocationDispatcherHost up to profile.
TEST=GeolocationPermissionContextTests.MultipleOrigins or manual: open two tabs from the same origin with geolocation. Check both info bars are created. Reply to only one of them, check the other is gone.
BUG=40527
Review URL: http://codereview.chromium.org/1585036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46910 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.h')
-rw-r--r-- | chrome/browser/profile.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h index 751d2e2..b7d5c24 100644 --- a/chrome/browser/profile.h +++ b/chrome/browser/profile.h @@ -45,6 +45,7 @@ class ExtensionsService; class FaviconService; class FindBarState; class GeolocationContentSettingsMap; +class GeolocationPermissionContext; class HistoryService; class HostContentSettingsMap; class HostZoomMap; @@ -315,6 +316,9 @@ class Profile { // Returns the geolocation settings map for this profile. virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap() = 0; + // Returns the geolocation permission context for this profile. + virtual GeolocationPermissionContext* GetGeolocationPermissionContext() = 0; + // Returns the Privacy Blacklist for this profile. virtual Blacklist* GetPrivacyBlacklist() = 0; @@ -498,6 +502,7 @@ class ProfileImpl : public Profile, virtual HostContentSettingsMap* GetHostContentSettingsMap(); virtual HostZoomMap* GetHostZoomMap(); virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap(); + virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); virtual Blacklist* GetPrivacyBlacklist(); virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); virtual FindBarState* GetFindBarState(); @@ -591,6 +596,8 @@ class ProfileImpl : public Profile, scoped_refptr<HostZoomMap> host_zoom_map_; scoped_refptr<GeolocationContentSettingsMap> geolocation_content_settings_map_; + scoped_refptr<GeolocationPermissionContext> + geolocation_permission_context_; scoped_refptr<Blacklist> privacy_blacklist_; scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher_; scoped_ptr<FindBarState> find_bar_state_; |