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

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

Issue 6461024: Revert 74292 - Splits ChromeURLDataManager into 2 chunks:... (Closed) Base URL: svn://svn.chromium.org/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
« no previous file with comments | « chrome/browser/profiles/profile.h ('k') | chrome/browser/profiles/profile_impl.h » ('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 #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"
21 #include "chrome/browser/download/download_manager.h" 20 #include "chrome/browser/download/download_manager.h"
22 #include "chrome/browser/extensions/extension_message_service.h" 21 #include "chrome/browser/extensions/extension_message_service.h"
23 #include "chrome/browser/extensions/extension_pref_store.h" 22 #include "chrome/browser/extensions/extension_pref_store.h"
24 #include "chrome/browser/extensions/extension_process_manager.h" 23 #include "chrome/browser/extensions/extension_process_manager.h"
25 #include "chrome/browser/file_system/browser_file_system_helper.h" 24 #include "chrome/browser/file_system/browser_file_system_helper.h"
26 #include "chrome/browser/in_process_webkit/webkit_context.h" 25 #include "chrome/browser/in_process_webkit/webkit_context.h"
27 #include "chrome/browser/net/chrome_url_request_context.h" 26 #include "chrome/browser/net/chrome_url_request_context.h"
28 #include "chrome/browser/net/pref_proxy_config_service.h" 27 #include "chrome/browser/net/pref_proxy_config_service.h"
29 #include "chrome/browser/notifications/desktop_notification_service.h" 28 #include "chrome/browser/notifications/desktop_notification_service.h"
30 #include "chrome/browser/ssl/ssl_host_state.h" 29 #include "chrome/browser/ssl/ssl_host_state.h"
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 } 623 }
625 624
626 virtual ExtensionInfoMap* GetExtensionInfoMap() { 625 virtual ExtensionInfoMap* GetExtensionInfoMap() {
627 return profile_->GetExtensionInfoMap(); 626 return profile_->GetExtensionInfoMap();
628 } 627 }
629 628
630 virtual policy::ProfilePolicyContext* GetPolicyContext() { 629 virtual policy::ProfilePolicyContext* GetPolicyContext() {
631 return NULL; 630 return NULL;
632 } 631 }
633 632
634 virtual ChromeURLDataManager* GetChromeURLDataManager() {
635 if (!chrome_url_data_manager_.get())
636 chrome_url_data_manager_.reset(new ChromeURLDataManager(this));
637 return chrome_url_data_manager_.get();
638 }
639
640 virtual PromoCounter* GetInstantPromoCounter() { 633 virtual PromoCounter* GetInstantPromoCounter() {
641 return NULL; 634 return NULL;
642 } 635 }
643 636
644 #if defined(OS_CHROMEOS) 637 #if defined(OS_CHROMEOS)
645 virtual void ChangeAppLocale(const std::string& locale, AppLocaleChangedVia) { 638 virtual void ChangeAppLocale(const std::string& locale, AppLocaleChangedVia) {
646 } 639 }
647 #endif // defined(OS_CHROMEOS) 640 #endif // defined(OS_CHROMEOS)
648 641
649 virtual PrefProxyConfigTracker* GetProxyConfigTracker() { 642 virtual PrefProxyConfigTracker* GetProxyConfigTracker() {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 // Tracks all BackgroundContents running under this profile. 712 // Tracks all BackgroundContents running under this profile.
720 scoped_ptr<BackgroundContentsService> background_contents_service_; 713 scoped_ptr<BackgroundContentsService> background_contents_service_;
721 714
722 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; 715 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_;
723 716
724 // The file_system context for this profile. 717 // The file_system context for this profile.
725 scoped_refptr<fileapi::SandboxedFileSystemContext> file_system_context_; 718 scoped_refptr<fileapi::SandboxedFileSystemContext> file_system_context_;
726 719
727 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 720 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
728 721
729 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_;
730
731 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); 722 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl);
732 }; 723 };
733 724
734 #if defined(OS_CHROMEOS) 725 #if defined(OS_CHROMEOS)
735 // Special case of the OffTheRecordProfileImpl which is used while Guest 726 // Special case of the OffTheRecordProfileImpl which is used while Guest
736 // session in CrOS. 727 // session in CrOS.
737 class GuestSessionProfile : public OffTheRecordProfileImpl { 728 class GuestSessionProfile : public OffTheRecordProfileImpl {
738 public: 729 public:
739 explicit GuestSessionProfile(Profile* real_profile) 730 explicit GuestSessionProfile(Profile* real_profile)
740 : OffTheRecordProfileImpl(real_profile) { 731 : OffTheRecordProfileImpl(real_profile) {
741 } 732 }
742 733
743 virtual PersonalDataManager* GetPersonalDataManager() { 734 virtual PersonalDataManager* GetPersonalDataManager() {
744 return GetOriginalProfile()->GetPersonalDataManager(); 735 return GetOriginalProfile()->GetPersonalDataManager();
745 } 736 }
746 }; 737 };
747 #endif 738 #endif
748 739
749 Profile* Profile::CreateOffTheRecordProfile() { 740 Profile* Profile::CreateOffTheRecordProfile() {
750 #if defined(OS_CHROMEOS) 741 #if defined(OS_CHROMEOS)
751 if (Profile::IsGuestSession()) 742 if (Profile::IsGuestSession())
752 return new GuestSessionProfile(this); 743 return new GuestSessionProfile(this);
753 #endif 744 #endif
754 return new OffTheRecordProfileImpl(this); 745 return new OffTheRecordProfileImpl(this);
755 } 746 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile.h ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698