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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 virtual prerender::PrerenderManager* GetPrerenderManager() OVERRIDE; | 128 virtual prerender::PrerenderManager* GetPrerenderManager() OVERRIDE; |
131 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; | 129 virtual chrome_browser_net::Predictor* GetNetworkPredictor() OVERRIDE; |
132 virtual void DeleteTransportSecurityStateSince(base::Time time) OVERRIDE; | 130 virtual void DeleteTransportSecurityStateSince(base::Time time) OVERRIDE; |
133 | 131 |
134 // NotificationObserver implementation. | 132 // NotificationObserver implementation. |
135 virtual void Observe(int type, | 133 virtual void Observe(int type, |
136 const NotificationSource& source, | 134 const NotificationSource& source, |
137 const NotificationDetails& details) OVERRIDE; | 135 const NotificationDetails& details) OVERRIDE; |
138 | 136 |
139 private: | 137 private: |
140 virtual void SetDownloadManagerDelegate( | |
141 ChromeDownloadManagerDelegate* delegate) OVERRIDE; | |
142 | |
143 void CreateQuotaManagerAndClients(); | 138 void CreateQuotaManagerAndClients(); |
144 | 139 |
145 NotificationRegistrar registrar_; | 140 NotificationRegistrar registrar_; |
146 | 141 |
147 // The real underlying profile. | 142 // The real underlying profile. |
148 Profile* profile_; | 143 Profile* profile_; |
149 | 144 |
150 // Weak pointer owned by |profile_|. | 145 // Weak pointer owned by |profile_|. |
151 PrefService* prefs_; | 146 PrefService* prefs_; |
152 | 147 |
153 scoped_ptr<ExtensionProcessManager> extension_process_manager_; | 148 scoped_ptr<ExtensionProcessManager> extension_process_manager_; |
154 | 149 |
155 OffTheRecordProfileIOData::Handle io_data_; | 150 OffTheRecordProfileIOData::Handle io_data_; |
156 | 151 |
157 // Used so that Chrome code can influence how content module's DownloadManager | |
158 // functions. | |
159 scoped_refptr<ChromeDownloadManagerDelegate> download_manager_delegate_; | |
160 | |
161 // The download manager that only stores downloaded items in memory. | |
162 scoped_refptr<DownloadManager> download_manager_; | |
163 | |
164 // We use a non-persistent content settings map for OTR. | 152 // We use a non-persistent content settings map for OTR. |
165 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 153 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
166 | 154 |
167 // Use a separate zoom map for OTR. | 155 // Use a separate zoom map for OTR. |
168 scoped_refptr<HostZoomMap> host_zoom_map_; | 156 scoped_refptr<HostZoomMap> host_zoom_map_; |
169 | 157 |
170 // Use a special WebKit context for OTR browsing. | 158 // Use a special WebKit context for OTR browsing. |
171 scoped_refptr<WebKitContext> webkit_context_; | 159 scoped_refptr<WebKitContext> webkit_context_; |
172 | 160 |
173 // We don't want SSLHostState from the OTR profile to leak back to the main | 161 // We don't want SSLHostState from the OTR profile to leak back to the main |
(...skipping 24 matching lines...) Expand all Loading... |
198 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 186 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
199 | 187 |
200 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; | 188 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; |
201 | 189 |
202 scoped_refptr<quota::QuotaManager> quota_manager_; | 190 scoped_refptr<quota::QuotaManager> quota_manager_; |
203 | 191 |
204 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); | 192 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); |
205 }; | 193 }; |
206 | 194 |
207 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ | 195 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ |
OLD | NEW |