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

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

Issue 7063030: PrintPreview: Print Preview is not staying associated with initiator renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 6 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
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_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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // Creates and initializes a profile sync service if the tests require one. 273 // Creates and initializes a profile sync service if the tests require one.
274 virtual TokenService* GetTokenService(); 274 virtual TokenService* GetTokenService();
275 virtual ProfileSyncService* GetProfileSyncService(); 275 virtual ProfileSyncService* GetProfileSyncService();
276 virtual ProfileSyncService* GetProfileSyncService( 276 virtual ProfileSyncService* GetProfileSyncService(
277 const std::string& cros_notes); 277 const std::string& cros_notes);
278 virtual CloudPrintProxyService* GetCloudPrintProxyService(); 278 virtual CloudPrintProxyService* GetCloudPrintProxyService();
279 virtual ChromeBlobStorageContext* GetBlobStorageContext(); 279 virtual ChromeBlobStorageContext* GetBlobStorageContext();
280 virtual ExtensionInfoMap* GetExtensionInfoMap(); 280 virtual ExtensionInfoMap* GetExtensionInfoMap();
281 virtual PromoCounter* GetInstantPromoCounter(); 281 virtual PromoCounter* GetInstantPromoCounter();
282 virtual ChromeURLDataManager* GetChromeURLDataManager(); 282 virtual ChromeURLDataManager* GetChromeURLDataManager();
283 virtual PrintPreviewDataManager* GetPrintPreviewDataManager();
283 virtual prerender::PrerenderManager* GetPrerenderManager(); 284 virtual prerender::PrerenderManager* GetPrerenderManager();
284 virtual PrefService* GetOffTheRecordPrefs(); 285 virtual PrefService* GetOffTheRecordPrefs();
285 286
286 // TODO(jam): remove me once webkit_context_unittest.cc doesn't use Profile 287 // TODO(jam): remove me once webkit_context_unittest.cc doesn't use Profile
287 // and gets the quota::SpecialStoragePolicy* from whatever ends up replacing 288 // and gets the quota::SpecialStoragePolicy* from whatever ends up replacing
288 // it in the content module. 289 // it in the content module.
289 quota::SpecialStoragePolicy* GetSpecialStoragePolicy(); 290 quota::SpecialStoragePolicy* GetSpecialStoragePolicy();
290 291
291 protected: 292 protected:
292 base::Time start_time_; 293 base::Time start_time_;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 extension_special_storage_policy_; 384 extension_special_storage_policy_;
384 385
385 // The proxy prefs tracker. 386 // The proxy prefs tracker.
386 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 387 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
387 388
388 // We use a temporary directory to store testing profile data. 389 // We use a temporary directory to store testing profile data.
389 ScopedTempDir temp_dir_; 390 ScopedTempDir temp_dir_;
390 391
391 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; 392 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_;
392 393
394 scoped_refptr<PrintPreviewDataManager> print_preview_data_manager_;
395
393 scoped_ptr<prerender::PrerenderManager> prerender_manager_; 396 scoped_ptr<prerender::PrerenderManager> prerender_manager_;
394 397
395 // We keep a weak pointer to the dependency manager we want to notify on our 398 // We keep a weak pointer to the dependency manager we want to notify on our
396 // death. Defaults to the Singleton implementation but overridable for 399 // death. Defaults to the Singleton implementation but overridable for
397 // testing. 400 // testing.
398 ProfileDependencyManager* profile_dependency_manager_; 401 ProfileDependencyManager* profile_dependency_manager_;
399 }; 402 };
400 403
401 // A profile that derives from another profile. This does not actually 404 // A profile that derives from another profile. This does not actually
402 // override anything except the GetRuntimeId() in order to test sharing of 405 // override anything except the GetRuntimeId() in order to test sharing of
403 // site information. 406 // site information.
404 class DerivedTestingProfile : public TestingProfile { 407 class DerivedTestingProfile : public TestingProfile {
405 public: 408 public:
406 explicit DerivedTestingProfile(Profile* profile); 409 explicit DerivedTestingProfile(Profile* profile);
407 virtual ~DerivedTestingProfile(); 410 virtual ~DerivedTestingProfile();
408 411
409 virtual ProfileId GetRuntimeId(); 412 virtual ProfileId GetRuntimeId();
410 413
411 protected: 414 protected:
412 Profile* original_profile_; 415 Profile* original_profile_;
413 }; 416 };
414 417
415 #endif // CHROME_TEST_TESTING_PROFILE_H_ 418 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698