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

Side by Side Diff: chrome/browser/profiles/profile_io_data.h

Issue 7713034: HostContentSettingsMap refactoring. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Keeping up to date with trunk. Created 9 years, 3 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) 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 CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/synchronization/lock.h" 16 #include "base/synchronization/lock.h"
17 #include "chrome/browser/net/chrome_url_request_context.h" 17 #include "chrome/browser/net/chrome_url_request_context.h"
18 #include "chrome/browser/prefs/pref_member.h" 18 #include "chrome/browser/prefs/pref_member.h"
19 #include "content/browser/resource_context.h" 19 #include "content/browser/resource_context.h"
20 #include "net/base/cookie_monster.h" 20 #include "net/base/cookie_monster.h"
21 21
22 class CommandLine; 22 class CommandLine;
23 class ChromeAppCacheService; 23 class ChromeAppCacheService;
24 class ChromeBlobStorageContext; 24 class ChromeBlobStorageContext;
25 class CookieSettings;
25 class DesktopNotificationService; 26 class DesktopNotificationService;
26 class ExtensionInfoMap; 27 class ExtensionInfoMap;
27 class HostContentSettingsMap; 28 class HostContentSettingsMap;
28 class HostZoomMap; 29 class HostZoomMap;
29 class IOThread; 30 class IOThread;
30 class Profile; 31 class Profile;
31 class ProtocolHandlerRegistry; 32 class ProtocolHandlerRegistry;
32 33
33 namespace fileapi { 34 namespace fileapi {
34 class FileSystemContext; 35 class FileSystemContext;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 scoped_refptr<ChromeURLRequestContext> GetExtensionsRequestContext() const; 92 scoped_refptr<ChromeURLRequestContext> GetExtensionsRequestContext() const;
92 scoped_refptr<ChromeURLRequestContext> GetIsolatedAppRequestContext( 93 scoped_refptr<ChromeURLRequestContext> GetIsolatedAppRequestContext(
93 scoped_refptr<ChromeURLRequestContext> main_context, 94 scoped_refptr<ChromeURLRequestContext> main_context,
94 const std::string& app_id) const; 95 const std::string& app_id) const;
95 96
96 // These are useful when the Chrome layer is called from the content layer 97 // These are useful when the Chrome layer is called from the content layer
97 // with a content::ResourceContext, and they want access to Chrome data for 98 // with a content::ResourceContext, and they want access to Chrome data for
98 // that profile. 99 // that profile.
99 ExtensionInfoMap* GetExtensionInfoMap() const; 100 ExtensionInfoMap* GetExtensionInfoMap() const;
100 HostContentSettingsMap* GetHostContentSettingsMap() const; 101 HostContentSettingsMap* GetHostContentSettingsMap() const;
102 CookieSettings* GetCookieSettings() const;
101 DesktopNotificationService* GetNotificationService() const; 103 DesktopNotificationService* GetNotificationService() const;
102 104
103 BooleanPrefMember* clear_local_state_on_exit() const { 105 BooleanPrefMember* clear_local_state_on_exit() const {
104 return &clear_local_state_on_exit_; 106 return &clear_local_state_on_exit_;
105 } 107 }
106 108
107 ChromeURLRequestContext* extensions_request_context() const { 109 ChromeURLRequestContext* extensions_request_context() const {
108 return extensions_request_context_.get(); 110 return extensions_request_context_.get();
109 } 111 }
110 112
(...skipping 21 matching lines...) Expand all
132 ProfileParams(); 134 ProfileParams();
133 ~ProfileParams(); 135 ~ProfileParams();
134 136
135 bool is_incognito; 137 bool is_incognito;
136 bool clear_local_state_on_exit; 138 bool clear_local_state_on_exit;
137 std::string accept_language; 139 std::string accept_language;
138 std::string accept_charset; 140 std::string accept_charset;
139 std::string referrer_charset; 141 std::string referrer_charset;
140 IOThread* io_thread; 142 IOThread* io_thread;
141 scoped_refptr<HostContentSettingsMap> host_content_settings_map; 143 scoped_refptr<HostContentSettingsMap> host_content_settings_map;
144 scoped_refptr<CookieSettings> cookie_settings;
142 scoped_refptr<HostZoomMap> host_zoom_map; 145 scoped_refptr<HostZoomMap> host_zoom_map;
143 scoped_refptr<net::TransportSecurityState> transport_security_state; 146 scoped_refptr<net::TransportSecurityState> transport_security_state;
144 scoped_refptr<net::SSLConfigService> ssl_config_service; 147 scoped_refptr<net::SSLConfigService> ssl_config_service;
145 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate; 148 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate;
146 scoped_refptr<webkit_database::DatabaseTracker> database_tracker; 149 scoped_refptr<webkit_database::DatabaseTracker> database_tracker;
147 scoped_refptr<ChromeAppCacheService> appcache_service; 150 scoped_refptr<ChromeAppCacheService> appcache_service;
148 scoped_refptr<ChromeBlobStorageContext> blob_storage_context; 151 scoped_refptr<ChromeBlobStorageContext> blob_storage_context;
149 scoped_refptr<fileapi::FileSystemContext> file_system_context; 152 scoped_refptr<fileapi::FileSystemContext> file_system_context;
150 scoped_refptr<quota::QuotaManager> quota_manager; 153 scoped_refptr<quota::QuotaManager> quota_manager;
151 scoped_refptr<ExtensionInfoMap> extension_info_map; 154 scoped_refptr<ExtensionInfoMap> extension_info_map;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 mutable scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; 281 mutable scoped_refptr<webkit_database::DatabaseTracker> database_tracker_;
279 mutable scoped_refptr<ChromeAppCacheService> appcache_service_; 282 mutable scoped_refptr<ChromeAppCacheService> appcache_service_;
280 mutable scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; 283 mutable scoped_refptr<ChromeBlobStorageContext> blob_storage_context_;
281 mutable scoped_refptr<fileapi::FileSystemContext> file_system_context_; 284 mutable scoped_refptr<fileapi::FileSystemContext> file_system_context_;
282 mutable scoped_refptr<quota::QuotaManager> quota_manager_; 285 mutable scoped_refptr<quota::QuotaManager> quota_manager_;
283 mutable scoped_refptr<HostZoomMap> host_zoom_map_; 286 mutable scoped_refptr<HostZoomMap> host_zoom_map_;
284 287
285 // TODO(willchan): Remove from ResourceContext. 288 // TODO(willchan): Remove from ResourceContext.
286 mutable scoped_refptr<ExtensionInfoMap> extension_info_map_; 289 mutable scoped_refptr<ExtensionInfoMap> extension_info_map_;
287 mutable scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 290 mutable scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
291 mutable scoped_refptr<CookieSettings> cookie_settings_;
288 mutable DesktopNotificationService* notification_service_; 292 mutable DesktopNotificationService* notification_service_;
289 mutable base::Callback<prerender::PrerenderManager*(void)> 293 mutable base::Callback<prerender::PrerenderManager*(void)>
290 prerender_manager_getter_; 294 prerender_manager_getter_;
291 295
292 mutable ResourceContext resource_context_; 296 mutable ResourceContext resource_context_;
293 297
294 // These are only valid in between LazyInitialize() and their accessor being 298 // These are only valid in between LazyInitialize() and their accessor being
295 // called. 299 // called.
296 mutable scoped_refptr<ChromeURLRequestContext> main_request_context_; 300 mutable scoped_refptr<ChromeURLRequestContext> main_request_context_;
297 mutable scoped_refptr<ChromeURLRequestContext> extensions_request_context_; 301 mutable scoped_refptr<ChromeURLRequestContext> extensions_request_context_;
298 // One AppRequestContext per isolated app. 302 // One AppRequestContext per isolated app.
299 mutable AppRequestContextMap app_request_context_map_; 303 mutable AppRequestContextMap app_request_context_map_;
300 304
301 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 305 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
302 }; 306 };
303 307
304 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 308 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698