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

Side by Side Diff: chrome/test/base/testing_profile.h

Issue 7859001: Added ability to set ChromeDownloadManagerDelegate for testing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged to TOT. Again. Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_BASE_TESTING_PROFILE_H_ 5 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_
6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ 6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // it in the content module. 287 // it in the content module.
288 quota::SpecialStoragePolicy* GetSpecialStoragePolicy(); 288 quota::SpecialStoragePolicy* GetSpecialStoragePolicy();
289 289
290 protected: 290 protected:
291 base::Time start_time_; 291 base::Time start_time_;
292 scoped_ptr<PrefService> prefs_; 292 scoped_ptr<PrefService> prefs_;
293 // ref only for right type, lifecycle is managed by prefs_ 293 // ref only for right type, lifecycle is managed by prefs_
294 TestingPrefService* testing_prefs_; 294 TestingPrefService* testing_prefs_;
295 295
296 private: 296 private:
297 virtual void SetDownloadManagerDelegate(
298 ChromeDownloadManagerDelegate* delegate);
299
297 // Common initialization between the two constructors. 300 // Common initialization between the two constructors.
298 void Init(); 301 void Init();
299 302
300 // Destroys favicon service if it has been created. 303 // Destroys favicon service if it has been created.
301 void DestroyFaviconService(); 304 void DestroyFaviconService();
302 305
303 // If the webdata service has been created, it is destroyed. This is invoked 306 // If the webdata service has been created, it is destroyed. This is invoked
304 // from the destructor. 307 // from the destructor.
305 void DestroyWebDataService(); 308 void DestroyWebDataService();
306 309
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 // testing. 407 // testing.
405 ProfileDependencyManager* profile_dependency_manager_; 408 ProfileDependencyManager* profile_dependency_manager_;
406 409
407 scoped_refptr<ChromeAppCacheService> appcache_service_; 410 scoped_refptr<ChromeAppCacheService> appcache_service_;
408 411
409 // The QuotaManager, only available if set explicitly via SetQuotaManager. 412 // The QuotaManager, only available if set explicitly via SetQuotaManager.
410 scoped_refptr<quota::QuotaManager> quota_manager_; 413 scoped_refptr<quota::QuotaManager> quota_manager_;
411 }; 414 };
412 415
413 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 416 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698