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

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

Issue 5646003: Sanitize PrefStore interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix PrefService mock construction in PrefServiceTest to include command line store. Created 10 years 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/test/testing_pref_service.cc ('k') | chrome/test/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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
11 #include "base/scoped_temp_dir.h" 11 #include "base/scoped_temp_dir.h"
12 #include "base/timer.h" 12 #include "base/timer.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 14
15 namespace history { 15 namespace history {
16 class TopSites; 16 class TopSites;
17 } 17 }
18 18
19 namespace net { 19 namespace net {
20 class CookieMonster; 20 class CookieMonster;
21 } 21 }
22 22
23 class AutocompleteClassifier; 23 class AutocompleteClassifier;
24 class BookmarkModel; 24 class BookmarkModel;
25 class BrowserThemeProvider; 25 class BrowserThemeProvider;
26 class CommandLine; 26 class CommandLine;
27 class DesktopNotificationService; 27 class DesktopNotificationService;
28 class ExtensionPrefStore;
28 class ExtensionPrefs; 29 class ExtensionPrefs;
29 class FaviconService; 30 class FaviconService;
30 class FindBarState; 31 class FindBarState;
31 class GeolocationContentSettingsMap; 32 class GeolocationContentSettingsMap;
32 class GeolocationPermissionContext; 33 class GeolocationPermissionContext;
33 class HistoryService; 34 class HistoryService;
34 class HostContentSettingsMap; 35 class HostContentSettingsMap;
35 class PrefService; 36 class PrefService;
36 class ProfileSyncService; 37 class ProfileSyncService;
37 class SessionService; 38 class SessionService;
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 geolocation_content_settings_map_; 400 geolocation_content_settings_map_;
400 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_; 401 scoped_refptr<GeolocationPermissionContext> geolocation_permission_context_;
401 scoped_ptr<DesktopNotificationService> desktop_notification_service_; 402 scoped_ptr<DesktopNotificationService> desktop_notification_service_;
402 403
403 // Find bar state. Created lazily by GetFindBarState(). 404 // Find bar state. Created lazily by GetFindBarState().
404 scoped_ptr<FindBarState> find_bar_state_; 405 scoped_ptr<FindBarState> find_bar_state_;
405 406
406 FilePath last_selected_directory_; 407 FilePath last_selected_directory_;
407 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. 408 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails.
408 409
410 // Extension pref store, created for use by |extension_prefs_|.
411 scoped_ptr<ExtensionPrefStore> extension_pref_store_;
412
409 // The Extension Preferences. Only created if CreateExtensionsService is 413 // The Extension Preferences. Only created if CreateExtensionsService is
410 // invoked. 414 // invoked.
411 scoped_ptr<ExtensionPrefs> extension_prefs_; 415 scoped_ptr<ExtensionPrefs> extension_prefs_;
412 416
413 // For properly notifying the ExtensionsService when the profile 417 // For properly notifying the ExtensionsService when the profile
414 // is disposed. 418 // is disposed.
415 scoped_refptr<ExtensionsService> extensions_service_; 419 scoped_refptr<ExtensionsService> extensions_service_;
416 420
417 // The proxy prefs tracker. 421 // The proxy prefs tracker.
418 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 422 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
(...skipping 12 matching lines...) Expand all
431 435
432 virtual ProfileId GetRuntimeId() { 436 virtual ProfileId GetRuntimeId() {
433 return original_profile_->GetRuntimeId(); 437 return original_profile_->GetRuntimeId();
434 } 438 }
435 439
436 protected: 440 protected:
437 Profile* original_profile_; 441 Profile* original_profile_;
438 }; 442 };
439 443
440 #endif // CHROME_TEST_TESTING_PROFILE_H_ 444 #endif // CHROME_TEST_TESTING_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/test/testing_pref_service.cc ('k') | chrome/test/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698