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

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

Issue 8401001: Fix history importing by delaying DownloadManager creation. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: merge 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
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
10 #include "base/basictypes.h" 11 #include "base/basictypes.h"
11 #include "base/callback.h" 12 #include "base/callback.h"
12 #include "base/file_path.h" 13 #include "base/file_path.h"
13 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
16 #include "base/synchronization/lock.h" 17 #include "base/synchronization/lock.h"
17 #include "chrome/browser/net/chrome_url_request_context.h" 18 #include "chrome/browser/net/chrome_url_request_context.h"
18 #include "chrome/browser/prefs/pref_member.h" 19 #include "chrome/browser/prefs/pref_member.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 CookieSettings;
27 class DesktopNotificationService; 27 class DesktopNotificationService;
28 class DownloadIdFactory;
28 class ExtensionInfoMap; 29 class ExtensionInfoMap;
29 class HostContentSettingsMap; 30 class HostContentSettingsMap;
30 class HostZoomMap; 31 class HostZoomMap;
31 class IOThread; 32 class IOThread;
32 class Profile; 33 class Profile;
33 class ProtocolHandlerRegistry; 34 class ProtocolHandlerRegistry;
34 class TransportSecurityPersister; 35 class TransportSecurityPersister;
35 36
36 namespace fileapi { 37 namespace fileapi {
37 class FileSystemContext; 38 class FileSystemContext;
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_; 291 mutable scoped_ptr<net::TransportSecurityState> transport_security_state_;
291 mutable scoped_ptr<net::URLRequestJobFactory> job_factory_; 292 mutable scoped_ptr<net::URLRequestJobFactory> job_factory_;
292 293
293 // Pointed to by ResourceContext. 294 // Pointed to by ResourceContext.
294 mutable scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; 295 mutable scoped_refptr<webkit_database::DatabaseTracker> database_tracker_;
295 mutable scoped_refptr<ChromeAppCacheService> appcache_service_; 296 mutable scoped_refptr<ChromeAppCacheService> appcache_service_;
296 mutable scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; 297 mutable scoped_refptr<ChromeBlobStorageContext> blob_storage_context_;
297 mutable scoped_refptr<fileapi::FileSystemContext> file_system_context_; 298 mutable scoped_refptr<fileapi::FileSystemContext> file_system_context_;
298 mutable scoped_refptr<quota::QuotaManager> quota_manager_; 299 mutable scoped_refptr<quota::QuotaManager> quota_manager_;
299 mutable scoped_refptr<HostZoomMap> host_zoom_map_; 300 mutable scoped_refptr<HostZoomMap> host_zoom_map_;
300 mutable DownloadManager::GetNextIdThunkType next_download_id_thunk_; 301 mutable scoped_refptr<DownloadIdFactory> download_id_factory_;
301 mutable scoped_ptr<media_stream::MediaStreamManager> media_stream_manager_; 302 mutable scoped_ptr<media_stream::MediaStreamManager> media_stream_manager_;
302 303
303 // TODO(willchan): Remove from ResourceContext. 304 // TODO(willchan): Remove from ResourceContext.
304 mutable scoped_refptr<ExtensionInfoMap> extension_info_map_; 305 mutable scoped_refptr<ExtensionInfoMap> extension_info_map_;
305 mutable scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 306 mutable scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
306 mutable scoped_refptr<CookieSettings> cookie_settings_; 307 mutable scoped_refptr<CookieSettings> cookie_settings_;
307 mutable DesktopNotificationService* notification_service_; 308 mutable DesktopNotificationService* notification_service_;
308 309
309 mutable ResourceContext resource_context_; 310 mutable ResourceContext resource_context_;
310 311
311 mutable scoped_ptr<TransportSecurityPersister> 312 mutable scoped_ptr<TransportSecurityPersister>
312 transport_security_persister_; 313 transport_security_persister_;
313 314
314 // These are only valid in between LazyInitialize() and their accessor being 315 // These are only valid in between LazyInitialize() and their accessor being
315 // called. 316 // called.
316 mutable scoped_refptr<ChromeURLRequestContext> main_request_context_; 317 mutable scoped_refptr<ChromeURLRequestContext> main_request_context_;
317 mutable scoped_refptr<ChromeURLRequestContext> extensions_request_context_; 318 mutable scoped_refptr<ChromeURLRequestContext> extensions_request_context_;
318 // One AppRequestContext per isolated app. 319 // One AppRequestContext per isolated app.
319 mutable AppRequestContextMap app_request_context_map_; 320 mutable AppRequestContextMap app_request_context_map_;
320 321
321 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. 322 // TODO(jhawkins): Remove once crbug.com/102004 is fixed.
322 bool initialized_on_UI_thread_; 323 bool initialized_on_UI_thread_;
323 324
324 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 325 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
325 }; 326 };
326 327
327 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 328 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698