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

Side by Side Diff: chrome/browser/profiles/profile.cc

Issue 6286131: Splits ChromeURLDataManager into 2 chunks:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 #include "chrome/browser/profiles/profile.h" 5 #include "chrome/browser/profiles/profile.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/scoped_ptr.h" 13 #include "base/scoped_ptr.h"
14 #include "base/string_util.h" 14 #include "base/string_util.h"
15 #include "chrome/browser/background_contents_service.h" 15 #include "chrome/browser/background_contents_service.h"
16 #include "chrome/browser/browser_list.h" 16 #include "chrome/browser/browser_list.h"
17 #include "chrome/browser/browser_process.h" 17 #include "chrome/browser/browser_process.h"
18 #include "chrome/browser/browser_thread.h" 18 #include "chrome/browser/browser_thread.h"
19 #include "chrome/browser/chrome_blob_storage_context.h" 19 #include "chrome/browser/chrome_blob_storage_context.h"
20 #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
20 #include "chrome/browser/download/download_manager.h" 21 #include "chrome/browser/download/download_manager.h"
21 #include "chrome/browser/extensions/extension_message_service.h" 22 #include "chrome/browser/extensions/extension_message_service.h"
22 #include "chrome/browser/extensions/extension_pref_store.h" 23 #include "chrome/browser/extensions/extension_pref_store.h"
23 #include "chrome/browser/extensions/extension_process_manager.h" 24 #include "chrome/browser/extensions/extension_process_manager.h"
24 #include "chrome/browser/file_system/browser_file_system_helper.h" 25 #include "chrome/browser/file_system/browser_file_system_helper.h"
25 #include "chrome/browser/in_process_webkit/webkit_context.h" 26 #include "chrome/browser/in_process_webkit/webkit_context.h"
26 #include "chrome/browser/net/chrome_url_request_context.h" 27 #include "chrome/browser/net/chrome_url_request_context.h"
27 #include "chrome/browser/net/pref_proxy_config_service.h" 28 #include "chrome/browser/net/pref_proxy_config_service.h"
28 #include "chrome/browser/notifications/desktop_notification_service.h" 29 #include "chrome/browser/notifications/desktop_notification_service.h"
29 #include "chrome/browser/ssl/ssl_host_state.h" 30 #include "chrome/browser/ssl/ssl_host_state.h"
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 } 613 }
613 614
614 virtual ExtensionInfoMap* GetExtensionInfoMap() { 615 virtual ExtensionInfoMap* GetExtensionInfoMap() {
615 return profile_->GetExtensionInfoMap(); 616 return profile_->GetExtensionInfoMap();
616 } 617 }
617 618
618 virtual policy::ProfilePolicyContext* GetPolicyContext() { 619 virtual policy::ProfilePolicyContext* GetPolicyContext() {
619 return NULL; 620 return NULL;
620 } 621 }
621 622
623 virtual ChromeURLDataManager* GetChromeURLDataManager() {
624 if (!chrome_url_data_manager_.get())
625 chrome_url_data_manager_.reset(new ChromeURLDataManager(this));
626 return chrome_url_data_manager_.get();
627 }
628
622 virtual PromoCounter* GetInstantPromoCounter() { 629 virtual PromoCounter* GetInstantPromoCounter() {
623 return NULL; 630 return NULL;
624 } 631 }
625 632
626 #if defined(OS_CHROMEOS) 633 #if defined(OS_CHROMEOS)
627 virtual void ChangeAppLocale(const std::string& locale, AppLocaleChangedVia) { 634 virtual void ChangeAppLocale(const std::string& locale, AppLocaleChangedVia) {
628 } 635 }
629 #endif // defined(OS_CHROMEOS) 636 #endif // defined(OS_CHROMEOS)
630 637
631 virtual PrefProxyConfigTracker* GetProxyConfigTracker() { 638 virtual PrefProxyConfigTracker* GetProxyConfigTracker() {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 // Tracks all BackgroundContents running under this profile. 708 // Tracks all BackgroundContents running under this profile.
702 scoped_ptr<BackgroundContentsService> background_contents_service_; 709 scoped_ptr<BackgroundContentsService> background_contents_service_;
703 710
704 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; 711 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_;
705 712
706 // The file_system context for this profile. 713 // The file_system context for this profile.
707 scoped_refptr<fileapi::SandboxedFileSystemContext> file_system_context_; 714 scoped_refptr<fileapi::SandboxedFileSystemContext> file_system_context_;
708 715
709 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 716 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
710 717
718 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_;
719
711 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); 720 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl);
712 }; 721 };
713 722
714 Profile* Profile::CreateOffTheRecordProfile() { 723 Profile* Profile::CreateOffTheRecordProfile() {
715 return new OffTheRecordProfileImpl(this); 724 return new OffTheRecordProfileImpl(this);
716 } 725 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698