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

Side by Side Diff: chrome/browser/prefs/pref_service_mock_builder.h

Issue 5915004: Introduce incognito preference settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed whitespaces in mac files Created 9 years, 11 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_BROWSER_PREFS_PREF_SERVICE_MOCK_BUILDER_H_ 5 #ifndef CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_BUILDER_H_
6 #define CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_BUILDER_H_ 6 #define CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_BUILDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/scoped_ptr.h" 10 #include "base/ref_counted.h"
11 #include "chrome/common/persistent_pref_store.h" 11 #include "chrome/common/persistent_pref_store.h"
12 #include "chrome/common/pref_store.h" 12 #include "chrome/common/pref_store.h"
13 13
14 class CommandLine; 14 class CommandLine;
15 class FilePath; 15 class FilePath;
16 class PrefService; 16 class PrefService;
17 class Profile; 17 class Profile;
18 18
19 namespace policy { 19 namespace policy {
20 class ConfigurationPolicyProvider; 20 class ConfigurationPolicyProvider;
(...skipping 28 matching lines...) Expand all
49 // Specifies to use an actual file-backed user pref store. 49 // Specifies to use an actual file-backed user pref store.
50 PrefServiceMockBuilder& WithUserFilePrefs(const FilePath& prefs_file); 50 PrefServiceMockBuilder& WithUserFilePrefs(const FilePath& prefs_file);
51 51
52 // Sets the profile to pass to the PrefService. 52 // Sets the profile to pass to the PrefService.
53 PrefServiceMockBuilder& WithRecommendedPrefs(Profile* profile); 53 PrefServiceMockBuilder& WithRecommendedPrefs(Profile* profile);
54 54
55 // Creates the PrefService, invalidating the entire builder configuration. 55 // Creates the PrefService, invalidating the entire builder configuration.
56 PrefService* Create(); 56 PrefService* Create();
57 57
58 private: 58 private:
59 scoped_ptr<PrefStore> managed_platform_prefs_; 59 scoped_refptr<PrefStore> managed_platform_prefs_;
60 scoped_ptr<PrefStore> device_management_prefs_; 60 scoped_refptr<PrefStore> device_management_prefs_;
61 scoped_ptr<PrefStore> extension_prefs_; 61 scoped_refptr<PrefStore> extension_prefs_;
62 scoped_ptr<PrefStore> command_line_prefs_; 62 scoped_refptr<PrefStore> command_line_prefs_;
63 scoped_ptr<PersistentPrefStore> user_prefs_; 63 scoped_refptr<PersistentPrefStore> user_prefs_;
64 scoped_ptr<PrefStore> recommended_prefs_; 64 scoped_refptr<PrefStore> recommended_prefs_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(PrefServiceMockBuilder); 66 DISALLOW_COPY_AND_ASSIGN(PrefServiceMockBuilder);
67 }; 67 };
68 68
69 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_BUILDER_H_ 69 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698