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

Side by Side Diff: content/browser/browser_context.h

Issue 7484072: Migrate geolocation settings to host content settings map. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 4 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
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_BROWSER_BROWSER_CONTEXT_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_CONTEXT_H_
6 #define CONTENT_BROWSER_BROWSER_CONTEXT_H_ 6 #define CONTENT_BROWSER_BROWSER_CONTEXT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 10
11 namespace net { 11 namespace net {
12 class URLRequestContextGetter; 12 class URLRequestContextGetter;
13 } 13 }
14 14
15 namespace quota { 15 namespace quota {
16 class QuotaManager; 16 class QuotaManager;
17 } 17 }
18 18
19 namespace webkit_database { 19 namespace webkit_database {
20 class DatabaseTracker; 20 class DatabaseTracker;
21 } 21 }
22 22
23 class ChromeBlobStorageContext; 23 class ChromeBlobStorageContext;
24 class DownloadManager; 24 class DownloadManager;
25 class FilePath; 25 class FilePath;
26 class GeolocationContentSettingsMap;
27 class GeolocationPermissionContext; 26 class GeolocationPermissionContext;
28 class HostZoomMap; 27 class HostZoomMap;
29 class SSLHostState; 28 class SSLHostState;
30 class WebKitContext; 29 class WebKitContext;
31 30
32 namespace content { 31 namespace content {
33 32
34 class ResourceContext; 33 class ResourceContext;
35 34
36 // This class holds the context needed for a browsing session. 35 // This class holds the context needed for a browsing session.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // Returns the request context for media resources asociated with this 74 // Returns the request context for media resources asociated with this
76 // context. 75 // context.
77 virtual net::URLRequestContextGetter* GetRequestContextForMedia() = 0; 76 virtual net::URLRequestContextGetter* GetRequestContextForMedia() = 0;
78 77
79 // Returns the resource context. 78 // Returns the resource context.
80 virtual const ResourceContext& GetResourceContext() = 0; 79 virtual const ResourceContext& GetResourceContext() = 0;
81 80
82 // Returns the Hostname <-> Zoom Level map for this context. 81 // Returns the Hostname <-> Zoom Level map for this context.
83 virtual HostZoomMap* GetHostZoomMap() = 0; 82 virtual HostZoomMap* GetHostZoomMap() = 0;
84 83
85 // Returns the geolocation settings map for this context.
86 virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap() = 0;
87
88 // Returns the geolocation permission context for this context. 84 // Returns the geolocation permission context for this context.
89 virtual GeolocationPermissionContext* GetGeolocationPermissionContext() = 0; 85 virtual GeolocationPermissionContext* GetGeolocationPermissionContext() = 0;
90 86
91 // Returns true if the last time this context was open it was exited cleanly. 87 // Returns true if the last time this context was open it was exited cleanly.
92 // This doesn't belong here; http://crbug.com/90737 88 // This doesn't belong here; http://crbug.com/90737
93 virtual bool DidLastSessionExitCleanly() = 0; 89 virtual bool DidLastSessionExitCleanly() = 0;
94 90
95 // Returns the WebKitContext assigned to this context. 91 // Returns the WebKitContext assigned to this context.
96 virtual WebKitContext* GetWebKitContext() = 0; 92 virtual WebKitContext* GetWebKitContext() = 0;
97 93
(...skipping 11 matching lines...) Expand all
109 struct hash<content::BrowserContext*> { 105 struct hash<content::BrowserContext*> {
110 std::size_t operator()(content::BrowserContext* const& p) const { 106 std::size_t operator()(content::BrowserContext* const& p) const {
111 return reinterpret_cast<std::size_t>(p); 107 return reinterpret_cast<std::size_t>(p);
112 } 108 }
113 }; 109 };
114 110
115 } // namespace __gnu_cxx 111 } // namespace __gnu_cxx
116 #endif 112 #endif
117 113
118 #endif // CONTENT_BROWSER_BROWSER_CONTEXT_H_ 114 #endif // CONTENT_BROWSER_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698