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

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

Issue 8383004: Adding CookieSettings for storing cookie content settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing the rebase. Created 9 years, 1 month 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/browser/profiles/profile_impl.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | 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 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/download/download_manager.h" 19 #include "content/browser/download/download_manager.h"
20 #include "content/browser/resource_context.h" 20 #include "content/browser/resource_context.h"
21 #include "net/base/cookie_monster.h" 21 #include "net/base/cookie_monster.h"
22 22
23 class CommandLine; 23 class CommandLine;
24 class ChromeAppCacheService; 24 class ChromeAppCacheService;
25 class ChromeBlobStorageContext; 25 class ChromeBlobStorageContext;
26 class CookieSettings;
26 class DesktopNotificationService; 27 class DesktopNotificationService;
27 class ExtensionInfoMap; 28 class ExtensionInfoMap;
28 class HostContentSettingsMap; 29 class HostContentSettingsMap;
29 class HostZoomMap; 30 class HostZoomMap;
30 class IOThread; 31 class IOThread;
31 class Profile; 32 class Profile;
32 class ProtocolHandlerRegistry; 33 class ProtocolHandlerRegistry;
33 class TransportSecurityPersister; 34 class TransportSecurityPersister;
34 35
35 namespace fileapi { 36 namespace fileapi {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 scoped_refptr<ChromeURLRequestContext> GetExtensionsRequestContext() const; 95 scoped_refptr<ChromeURLRequestContext> GetExtensionsRequestContext() const;
95 scoped_refptr<ChromeURLRequestContext> GetIsolatedAppRequestContext( 96 scoped_refptr<ChromeURLRequestContext> GetIsolatedAppRequestContext(
96 scoped_refptr<ChromeURLRequestContext> main_context, 97 scoped_refptr<ChromeURLRequestContext> main_context,
97 const std::string& app_id) const; 98 const std::string& app_id) const;
98 99
99 // These are useful when the Chrome layer is called from the content layer 100 // These are useful when the Chrome layer is called from the content layer
100 // with a content::ResourceContext, and they want access to Chrome data for 101 // with a content::ResourceContext, and they want access to Chrome data for
101 // that profile. 102 // that profile.
102 ExtensionInfoMap* GetExtensionInfoMap() const; 103 ExtensionInfoMap* GetExtensionInfoMap() const;
103 HostContentSettingsMap* GetHostContentSettingsMap() const; 104 HostContentSettingsMap* GetHostContentSettingsMap() const;
105 CookieSettings* GetCookieSettings() const;
104 DesktopNotificationService* GetNotificationService() const; 106 DesktopNotificationService* GetNotificationService() const;
105 107
106 BooleanPrefMember* clear_local_state_on_exit() const { 108 BooleanPrefMember* clear_local_state_on_exit() const {
107 return &clear_local_state_on_exit_; 109 return &clear_local_state_on_exit_;
108 } 110 }
109 111
110 ChromeURLRequestContext* extensions_request_context() const { 112 ChromeURLRequestContext* extensions_request_context() const {
111 return extensions_request_context_.get(); 113 return extensions_request_context_.get();
112 } 114 }
113 115
(...skipping 26 matching lines...) Expand all
140 ~ProfileParams(); 142 ~ProfileParams();
141 143
142 FilePath path; 144 FilePath path;
143 bool is_incognito; 145 bool is_incognito;
144 bool clear_local_state_on_exit; 146 bool clear_local_state_on_exit;
145 std::string accept_language; 147 std::string accept_language;
146 std::string accept_charset; 148 std::string accept_charset;
147 std::string referrer_charset; 149 std::string referrer_charset;
148 IOThread* io_thread; 150 IOThread* io_thread;
149 scoped_refptr<HostContentSettingsMap> host_content_settings_map; 151 scoped_refptr<HostContentSettingsMap> host_content_settings_map;
152 scoped_refptr<CookieSettings> cookie_settings;
150 scoped_refptr<HostZoomMap> host_zoom_map; 153 scoped_refptr<HostZoomMap> host_zoom_map;
151 scoped_refptr<net::SSLConfigService> ssl_config_service; 154 scoped_refptr<net::SSLConfigService> ssl_config_service;
152 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate; 155 scoped_refptr<net::CookieMonster::Delegate> cookie_monster_delegate;
153 scoped_refptr<webkit_database::DatabaseTracker> database_tracker; 156 scoped_refptr<webkit_database::DatabaseTracker> database_tracker;
154 scoped_refptr<ChromeAppCacheService> appcache_service; 157 scoped_refptr<ChromeAppCacheService> appcache_service;
155 scoped_refptr<ChromeBlobStorageContext> blob_storage_context; 158 scoped_refptr<ChromeBlobStorageContext> blob_storage_context;
156 scoped_refptr<fileapi::FileSystemContext> file_system_context; 159 scoped_refptr<fileapi::FileSystemContext> file_system_context;
157 scoped_refptr<quota::QuotaManager> quota_manager; 160 scoped_refptr<quota::QuotaManager> quota_manager;
158 scoped_refptr<ExtensionInfoMap> extension_info_map; 161 scoped_refptr<ExtensionInfoMap> extension_info_map;
159 DesktopNotificationService* notification_service; 162 DesktopNotificationService* notification_service;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 mutable scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; 296 mutable scoped_refptr<ChromeBlobStorageContext> blob_storage_context_;
294 mutable scoped_refptr<fileapi::FileSystemContext> file_system_context_; 297 mutable scoped_refptr<fileapi::FileSystemContext> file_system_context_;
295 mutable scoped_refptr<quota::QuotaManager> quota_manager_; 298 mutable scoped_refptr<quota::QuotaManager> quota_manager_;
296 mutable scoped_refptr<HostZoomMap> host_zoom_map_; 299 mutable scoped_refptr<HostZoomMap> host_zoom_map_;
297 mutable DownloadManager::GetNextIdThunkType next_download_id_thunk_; 300 mutable DownloadManager::GetNextIdThunkType next_download_id_thunk_;
298 mutable scoped_ptr<media_stream::MediaStreamManager> media_stream_manager_; 301 mutable scoped_ptr<media_stream::MediaStreamManager> media_stream_manager_;
299 302
300 // TODO(willchan): Remove from ResourceContext. 303 // TODO(willchan): Remove from ResourceContext.
301 mutable scoped_refptr<ExtensionInfoMap> extension_info_map_; 304 mutable scoped_refptr<ExtensionInfoMap> extension_info_map_;
302 mutable scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 305 mutable scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
306 mutable scoped_refptr<CookieSettings> cookie_settings_;
303 mutable DesktopNotificationService* notification_service_; 307 mutable DesktopNotificationService* notification_service_;
304 308
305 mutable ResourceContext resource_context_; 309 mutable ResourceContext resource_context_;
306 310
307 mutable scoped_ptr<TransportSecurityPersister> 311 mutable scoped_ptr<TransportSecurityPersister>
308 transport_security_persister_; 312 transport_security_persister_;
309 313
310 // These are only valid in between LazyInitialize() and their accessor being 314 // These are only valid in between LazyInitialize() and their accessor being
311 // called. 315 // called.
312 mutable scoped_refptr<ChromeURLRequestContext> main_request_context_; 316 mutable scoped_refptr<ChromeURLRequestContext> main_request_context_;
313 mutable scoped_refptr<ChromeURLRequestContext> extensions_request_context_; 317 mutable scoped_refptr<ChromeURLRequestContext> extensions_request_context_;
314 // One AppRequestContext per isolated app. 318 // One AppRequestContext per isolated app.
315 mutable AppRequestContextMap app_request_context_map_; 319 mutable AppRequestContextMap app_request_context_map_;
316 320
317 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 321 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
318 }; 322 };
319 323
320 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 324 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698