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

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

Issue 10196004: Changed ChromeURLDataManager to a ProfileKeyedService and made a Factory for it. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_OFF_THE_RECORD_PROFILE_IMPL_H_ 5 #ifndef CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
6 #define CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ 6 #define CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 virtual void MarkAsCleanShutdown() OVERRIDE; 71 virtual void MarkAsCleanShutdown() OVERRIDE;
72 virtual void InitPromoResources() OVERRIDE; 72 virtual void InitPromoResources() OVERRIDE;
73 virtual void InitRegisteredProtocolHandlers() OVERRIDE; 73 virtual void InitRegisteredProtocolHandlers() OVERRIDE;
74 virtual FilePath last_selected_directory() OVERRIDE; 74 virtual FilePath last_selected_directory() OVERRIDE;
75 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; 75 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE;
76 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; 76 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE;
77 77
78 #if defined(OS_CHROMEOS) 78 #if defined(OS_CHROMEOS)
79 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE; 79 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE;
80 virtual void InitChromeOSPreferences() OVERRIDE; 80 virtual void InitChromeOSPreferences() OVERRIDE;
81 #endif // defined(OS_CHROMEOS)
82 virtual ChromeURLDataManager* GetChromeURLDataManager() OVERRIDE;
83 81
84 #if defined(OS_CHROMEOS)
85 virtual void ChangeAppLocale(const std::string& locale, 82 virtual void ChangeAppLocale(const std::string& locale,
86 AppLocaleChangedVia) OVERRIDE; 83 AppLocaleChangedVia) OVERRIDE;
87 virtual void OnLogin() OVERRIDE; 84 virtual void OnLogin() OVERRIDE;
88 #endif // defined(OS_CHROMEOS) 85 #endif // defined(OS_CHROMEOS)
89 86
90 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE; 87 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE;
91 88
92 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; 89 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE;
93 virtual void ClearNetworkingHistorySince(base::Time time) OVERRIDE; 90 virtual void ClearNetworkingHistorySince(base::Time time) OVERRIDE;
94 virtual GURL GetHomePage() OVERRIDE; 91 virtual GURL GetHomePage() OVERRIDE;
(...skipping 16 matching lines...) Expand all
111 108
112 // content::NotificationObserver implementation. 109 // content::NotificationObserver implementation.
113 virtual void Observe(int type, 110 virtual void Observe(int type,
114 const content::NotificationSource& source, 111 const content::NotificationSource& source,
115 const content::NotificationDetails& details) OVERRIDE; 112 const content::NotificationDetails& details) OVERRIDE;
116 113
117 private: 114 private:
118 FRIEND_TEST_ALL_PREFIXES(OffTheRecordProfileImplTest, GetHostZoomMap); 115 FRIEND_TEST_ALL_PREFIXES(OffTheRecordProfileImplTest, GetHostZoomMap);
119 void InitHostZoomMap(); 116 void InitHostZoomMap();
120 117
118 virtual base::Callback<ChromeURLDataManagerBackend*(void)>
119 GetChromeURLDataManagerBackendGetter() const OVERRIDE;
120
121 content::NotificationRegistrar registrar_; 121 content::NotificationRegistrar registrar_;
122 122
123 // The real underlying profile. 123 // The real underlying profile.
124 Profile* profile_; 124 Profile* profile_;
125 125
126 // Weak pointer owned by |profile_|. 126 // Weak pointer owned by |profile_|.
127 PrefService* prefs_; 127 PrefService* prefs_;
128 128
129 OffTheRecordProfileIOData::Handle io_data_; 129 OffTheRecordProfileIOData::Handle io_data_;
130 130
131 // We use a non-persistent content settings map for OTR. 131 // We use a non-persistent content settings map for OTR.
132 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 132 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
133 133
134 // Time we were started. 134 // Time we were started.
135 Time start_time_; 135 Time start_time_;
136 136
137 FilePath last_selected_directory_; 137 FilePath last_selected_directory_;
138 138
139 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 139 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
140 140
141 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_;
142
143 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); 141 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl);
144 }; 142 };
145 143
146 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ 144 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698