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

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 25 matching lines...) Expand all
36 class ExtensionPrefValueMap; 36 class ExtensionPrefValueMap;
37 class ExtensionSpecialStoragePolicy; 37 class ExtensionSpecialStoragePolicy;
38 class FaviconService; 38 class FaviconService;
39 class FindBarState; 39 class FindBarState;
40 class GeolocationContentSettingsMap; 40 class GeolocationContentSettingsMap;
41 class GeolocationPermissionContext; 41 class GeolocationPermissionContext;
42 class HistoryService; 42 class HistoryService;
43 class HostContentSettingsMap; 43 class HostContentSettingsMap;
44 class PrefService; 44 class PrefService;
45 class ProfileDependencyManager; 45 class ProfileDependencyManager;
46 class ProfileKeyedService;
46 class ProfileSyncService; 47 class ProfileSyncService;
47 class TemplateURLModel; 48 class TemplateURLModel;
48 class TestingPrefService; 49 class TestingPrefService;
49 class ThemeService; 50 class ThemeService;
50 class WebKitContext; 51 class WebKitContext;
51 52
52 namespace net { 53 namespace net {
53 class URLRequestContextGetter; 54 class URLRequestContextGetter;
54 } 55 }
55 56
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 TestingPrefService* testing_prefs_; 296 TestingPrefService* testing_prefs_;
296 297
297 private: 298 private:
298 // Destroys favicon service if it has been created. 299 // Destroys favicon service if it has been created.
299 void DestroyFaviconService(); 300 void DestroyFaviconService();
300 301
301 // If the webdata service has been created, it is destroyed. This is invoked 302 // If the webdata service has been created, it is destroyed. This is invoked
302 // from the destructor. 303 // from the destructor.
303 void DestroyWebDataService(); 304 void DestroyWebDataService();
304 305
306 // Creates a PrintPreviewDataService.
307 ProfileKeyedService* CreateTestPrintPreviewDataService();
308
305 // Creates a TestingPrefService and associates it with the TestingProfile. 309 // Creates a TestingPrefService and associates it with the TestingProfile.
306 void CreateTestingPrefService(); 310 void CreateTestingPrefService();
307 311
308 // The favicon service. Only created if CreateFaviconService is invoked. 312 // The favicon service. Only created if CreateFaviconService is invoked.
309 scoped_refptr<FaviconService> favicon_service_; 313 scoped_refptr<FaviconService> favicon_service_;
310 314
311 // The history service. Only created if CreateHistoryService is invoked. 315 // The history service. Only created if CreateHistoryService is invoked.
312 scoped_refptr<HistoryService> history_service_; 316 scoped_refptr<HistoryService> history_service_;
313 317
314 // The BookmarkModel. Only created if CreateBookmarkModel is invoked. 318 // The BookmarkModel. Only created if CreateBookmarkModel is invoked.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 explicit DerivedTestingProfile(Profile* profile); 413 explicit DerivedTestingProfile(Profile* profile);
410 virtual ~DerivedTestingProfile(); 414 virtual ~DerivedTestingProfile();
411 415
412 virtual ProfileId GetRuntimeId(); 416 virtual ProfileId GetRuntimeId();
413 417
414 protected: 418 protected:
415 Profile* original_profile_; 419 Profile* original_profile_;
416 }; 420 };
417 421
418 #endif // CHROME_TEST_TESTING_PROFILE_H_ 422 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698