OLD | NEW |
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_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 |
11 #include "chrome/browser/download/chrome_download_manager_delegate.h" | |
12 #include "chrome/browser/profiles/off_the_record_profile_io_data.h" | 11 #include "chrome/browser/profiles/off_the_record_profile_io_data.h" |
13 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/ui/browser_list.h" | 13 #include "chrome/browser/ui/browser_list.h" |
15 #include "content/common/notification_observer.h" | 14 #include "content/common/notification_observer.h" |
16 | 15 |
17 using base::Time; | 16 using base::Time; |
18 using base::TimeDelta; | 17 using base::TimeDelta; |
19 | 18 |
20 //////////////////////////////////////////////////////////////////////////////// | 19 //////////////////////////////////////////////////////////////////////////////// |
21 // | 20 // |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 virtual FaviconService* GetFaviconService(ServiceAccessType sat) OVERRIDE; | 58 virtual FaviconService* GetFaviconService(ServiceAccessType sat) OVERRIDE; |
60 virtual AutocompleteClassifier* GetAutocompleteClassifier() OVERRIDE; | 59 virtual AutocompleteClassifier* GetAutocompleteClassifier() OVERRIDE; |
61 virtual history::ShortcutsBackend* GetShortcutsBackend() OVERRIDE; | 60 virtual history::ShortcutsBackend* GetShortcutsBackend() OVERRIDE; |
62 virtual WebDataService* GetWebDataService(ServiceAccessType sat) OVERRIDE; | 61 virtual WebDataService* GetWebDataService(ServiceAccessType sat) OVERRIDE; |
63 virtual WebDataService* GetWebDataServiceWithoutCreating() OVERRIDE; | 62 virtual WebDataService* GetWebDataServiceWithoutCreating() OVERRIDE; |
64 virtual PasswordStore* GetPasswordStore(ServiceAccessType sat) OVERRIDE; | 63 virtual PasswordStore* GetPasswordStore(ServiceAccessType sat) OVERRIDE; |
65 virtual PrefService* GetPrefs() OVERRIDE; | 64 virtual PrefService* GetPrefs() OVERRIDE; |
66 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; | 65 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; |
67 virtual TemplateURLFetcher* GetTemplateURLFetcher() OVERRIDE; | 66 virtual TemplateURLFetcher* GetTemplateURLFetcher() OVERRIDE; |
68 virtual DownloadManager* GetDownloadManager() OVERRIDE; | 67 virtual DownloadManager* GetDownloadManager() OVERRIDE; |
69 virtual bool HasCreatedDownloadManager() const OVERRIDE; | |
70 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE; | 68 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE; |
71 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; | 69 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; |
72 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE; | 70 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE; |
73 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 71 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |
74 int renderer_child_id) OVERRIDE; | 72 int renderer_child_id) OVERRIDE; |
75 virtual net::URLRequestContextGetter* GetRequestContextForMedia() OVERRIDE; | 73 virtual net::URLRequestContextGetter* GetRequestContextForMedia() OVERRIDE; |
76 virtual net::URLRequestContextGetter* | 74 virtual net::URLRequestContextGetter* |
77 GetRequestContextForExtensions() OVERRIDE; | 75 GetRequestContextForExtensions() OVERRIDE; |
78 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( | 76 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( |
79 const std::string& app_id) OVERRIDE; | 77 const std::string& app_id) OVERRIDE; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE; | 127 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE; |
130 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; | 128 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; |
131 virtual void DeleteTransportSecurityStateSince(base::Time time) OVERRIDE; | 129 virtual void DeleteTransportSecurityStateSince(base::Time time) OVERRIDE; |
132 | 130 |
133 // NotificationObserver implementation. | 131 // NotificationObserver implementation. |
134 virtual void Observe(int type, | 132 virtual void Observe(int type, |
135 const NotificationSource& source, | 133 const NotificationSource& source, |
136 const NotificationDetails& details) OVERRIDE; | 134 const NotificationDetails& details) OVERRIDE; |
137 | 135 |
138 private: | 136 private: |
139 virtual void SetDownloadManagerDelegate( | |
140 ChromeDownloadManagerDelegate* delegate) OVERRIDE; | |
141 | |
142 void CreateQuotaManagerAndClients(); | 137 void CreateQuotaManagerAndClients(); |
143 | 138 |
144 NotificationRegistrar registrar_; | 139 NotificationRegistrar registrar_; |
145 | 140 |
146 // The real underlying profile. | 141 // The real underlying profile. |
147 Profile* profile_; | 142 Profile* profile_; |
148 | 143 |
149 // Weak pointer owned by |profile_|. | 144 // Weak pointer owned by |profile_|. |
150 PrefService* prefs_; | 145 PrefService* prefs_; |
151 | 146 |
152 scoped_ptr<ExtensionProcessManager> extension_process_manager_; | 147 scoped_ptr<ExtensionProcessManager> extension_process_manager_; |
153 | 148 |
154 OffTheRecordProfileIOData::Handle io_data_; | 149 OffTheRecordProfileIOData::Handle io_data_; |
155 | 150 |
156 // Used so that Chrome code can influence how content module's DownloadManager | |
157 // functions. | |
158 scoped_refptr<ChromeDownloadManagerDelegate> download_manager_delegate_; | |
159 | |
160 // The download manager that only stores downloaded items in memory. | |
161 scoped_refptr<DownloadManager> download_manager_; | |
162 | |
163 // We use a non-persistent content settings map for OTR. | 151 // We use a non-persistent content settings map for OTR. |
164 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 152 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
165 | 153 |
166 // Use a separate zoom map for OTR. | 154 // Use a separate zoom map for OTR. |
167 scoped_refptr<HostZoomMap> host_zoom_map_; | 155 scoped_refptr<HostZoomMap> host_zoom_map_; |
168 | 156 |
169 // Use a special WebKit context for OTR browsing. | 157 // Use a special WebKit context for OTR browsing. |
170 scoped_refptr<WebKitContext> webkit_context_; | 158 scoped_refptr<WebKitContext> webkit_context_; |
171 | 159 |
172 // We don't want SSLHostState from the OTR profile to leak back to the main | 160 // We don't want SSLHostState from the OTR profile to leak back to the main |
(...skipping 24 matching lines...) Expand all Loading... |
197 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 185 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
198 | 186 |
199 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; | 187 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; |
200 | 188 |
201 scoped_refptr<quota::QuotaManager> quota_manager_; | 189 scoped_refptr<quota::QuotaManager> quota_manager_; |
202 | 190 |
203 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); | 191 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); |
204 }; | 192 }; |
205 | 193 |
206 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ | 194 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ |
OLD | NEW |