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_TEST_TESTING_PROFILE_H_ | 5 #ifndef CHROME_TEST_TESTING_PROFILE_H_ |
6 #define CHROME_TEST_TESTING_PROFILE_H_ | 6 #define CHROME_TEST_TESTING_PROFILE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
175 // to set a pref service you must invoke this before GetPrefs. | 175 // to set a pref service you must invoke this before GetPrefs. |
176 // TestingPrefService takes ownership of |prefs|. | 176 // TestingPrefService takes ownership of |prefs|. |
177 void SetPrefService(PrefService* prefs); | 177 void SetPrefService(PrefService* prefs); |
178 virtual PrefService* GetPrefs(); | 178 virtual PrefService* GetPrefs(); |
179 virtual TemplateURLFetcher* GetTemplateURLFetcher(); | 179 virtual TemplateURLFetcher* GetTemplateURLFetcher(); |
180 virtual history::TopSites* GetTopSites(); | 180 virtual history::TopSites* GetTopSites(); |
181 virtual history::TopSites* GetTopSitesWithoutCreating(); | 181 virtual history::TopSites* GetTopSitesWithoutCreating(); |
182 virtual DownloadManager* GetDownloadManager(); | 182 virtual DownloadManager* GetDownloadManager(); |
183 virtual PersonalDataManager* GetPersonalDataManager(); | 183 virtual PersonalDataManager* GetPersonalDataManager(); |
184 virtual fileapi::FileSystemContext* GetFileSystemContext(); | 184 virtual fileapi::FileSystemContext* GetFileSystemContext(); |
185 virtual void SetQuotaManager(quota::QuotaManager* manager); | |
185 virtual quota::QuotaManager* GetQuotaManager(); | 186 virtual quota::QuotaManager* GetQuotaManager(); |
186 virtual BrowserSignin* GetBrowserSignin(); | 187 virtual BrowserSignin* GetBrowserSignin(); |
187 virtual bool HasCreatedDownloadManager() const; | 188 virtual bool HasCreatedDownloadManager() const; |
188 | 189 |
189 // Returns a testing ContextGetter (if one has been created via | 190 // Returns a testing ContextGetter (if one has been created via |
190 // CreateRequestContext) or NULL. This is not done on-demand for two reasons: | 191 // CreateRequestContext) or NULL. This is not done on-demand for two reasons: |
191 // (1) Some tests depend on GetRequestContext() returning NULL. (2) Because | 192 // (1) Some tests depend on GetRequestContext() returning NULL. (2) Because |
192 // of the special memory management considerations for the | 193 // of the special memory management considerations for the |
193 // TestURLRequestContextGetter class, many tests would find themseleves | 194 // TestURLRequestContextGetter class, many tests would find themseleves |
194 // leaking if they called this method without the necessary IO thread. This | 195 // leaking if they called this method without the necessary IO thread. This |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
383 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; | 384 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; |
384 | 385 |
385 scoped_ptr<prerender::PrerenderManager> prerender_manager_; | 386 scoped_ptr<prerender::PrerenderManager> prerender_manager_; |
386 | 387 |
387 // We keep a weak pointer to the dependency manager we want to notify on our | 388 // We keep a weak pointer to the dependency manager we want to notify on our |
388 // death. Defaults to the Singleton implementation but overridable for | 389 // death. Defaults to the Singleton implementation but overridable for |
389 // testing. | 390 // testing. |
390 ProfileDependencyManager* profile_dependency_manager_; | 391 ProfileDependencyManager* profile_dependency_manager_; |
391 | 392 |
392 scoped_refptr<ChromeAppCacheService> appcache_service_; | 393 scoped_refptr<ChromeAppCacheService> appcache_service_; |
394 | |
395 // The QuotaManager, created if GetQuotaManager is invoked. | |
michaeln
2011/07/28 19:17:48
comment is stale
Mike West
2011/07/29 16:39:59
Done.
| |
396 scoped_refptr<quota::QuotaManager> quota_manager_; | |
393 }; | 397 }; |
394 | 398 |
395 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 399 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
OLD | NEW |