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

Unified Diff: chrome/test/testing_profile.h

Issue 7464029: Adding QuotaManager logic to TestingProfile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Uglay. Created 9 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browsing_data_remover_unittest.cc ('k') | chrome/test/testing_profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/testing_profile.h
diff --git a/chrome/test/testing_profile.h b/chrome/test/testing_profile.h
index f944ff718e1f058d629abeb1e14d2fae0ef8aced..9fbf4e164bb0eb485bb4ce58ad2799a8010aa588 100644
--- a/chrome/test/testing_profile.h
+++ b/chrome/test/testing_profile.h
@@ -54,6 +54,10 @@ namespace net {
class URLRequestContextGetter;
}
+namespace quota {
+class QuotaManager;
+}
+
class TestingProfile : public Profile {
public:
TestingProfile();
@@ -143,7 +147,6 @@ class TestingProfile : public Profile {
virtual void DestroyOffTheRecordProfile() {}
virtual bool HasOffTheRecordProfile();
virtual Profile* GetOriginalProfile();
- void SetAppCacheService(ChromeAppCacheService* appcache_service);
virtual ChromeAppCacheService* GetAppCacheService();
virtual webkit_database::DatabaseTracker* GetDatabaseTracker();
virtual VisitedLinkMaster* GetVisitedLinkMaster();
@@ -286,6 +289,9 @@ class TestingProfile : public Profile {
TestingPrefService* testing_prefs_;
private:
+ // Creates QuotaManager and its clients.
+ void CreateQuotaManagerAndClients();
+
// Destroys favicon service if it has been created.
void DestroyFaviconService();
@@ -372,6 +378,12 @@ class TestingProfile : public Profile {
scoped_refptr<ExtensionSpecialStoragePolicy>
extension_special_storage_policy_;
+ scoped_refptr<ChromeAppCacheService> appcache_service_;
+
+ // AppCacheService needs to be initialized on the IO thread, as does the
+ // request context that it requires.
+ bool appcache_service_init_finished_;
+
// The proxy prefs tracker.
scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
@@ -388,7 +400,7 @@ class TestingProfile : public Profile {
// testing.
ProfileDependencyManager* profile_dependency_manager_;
- scoped_refptr<ChromeAppCacheService> appcache_service_;
+ scoped_refptr<quota::QuotaManager> quota_manager_;
};
#endif // CHROME_TEST_TESTING_PROFILE_H_
« no previous file with comments | « chrome/browser/browsing_data_remover_unittest.cc ('k') | chrome/test/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698