| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_TEST_EXTENSION_PREFS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_PREFS_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_PREFS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_PREFS_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
| 11 #include "base/macros.h" | 12 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" | |
| 14 #include "chrome/test/base/testing_profile.h" | 14 #include "chrome/test/base/testing_profile.h" |
| 15 #include "extensions/common/manifest.h" | 15 #include "extensions/common/manifest.h" |
| 16 | 16 |
| 17 class ExtensionPrefValueMap; | 17 class ExtensionPrefValueMap; |
| 18 class PrefService; | 18 class PrefService; |
| 19 | 19 |
| 20 namespace base { | 20 namespace base { |
| 21 class DictionaryValue; | 21 class DictionaryValue; |
| 22 class SequencedTaskRunner; | 22 class SequencedTaskRunner; |
| 23 } | 23 } |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // active after calling RecreateExtensionPrefs(). Defaults to false. | 91 // active after calling RecreateExtensionPrefs(). Defaults to false. |
| 92 void set_extensions_disabled(bool extensions_disabled); | 92 void set_extensions_disabled(bool extensions_disabled); |
| 93 | 93 |
| 94 ChromeAppSorting* app_sorting(); | 94 ChromeAppSorting* app_sorting(); |
| 95 | 95 |
| 96 protected: | 96 protected: |
| 97 base::ScopedTempDir temp_dir_; | 97 base::ScopedTempDir temp_dir_; |
| 98 base::FilePath preferences_file_; | 98 base::FilePath preferences_file_; |
| 99 base::FilePath extensions_dir_; | 99 base::FilePath extensions_dir_; |
| 100 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_; | 100 scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_; |
| 101 scoped_ptr<syncable_prefs::PrefServiceSyncable> pref_service_; | 101 std::unique_ptr<syncable_prefs::PrefServiceSyncable> pref_service_; |
| 102 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_; | 102 std::unique_ptr<ExtensionPrefValueMap> extension_pref_value_map_; |
| 103 const scoped_refptr<base::SequencedTaskRunner> task_runner_; | 103 const scoped_refptr<base::SequencedTaskRunner> task_runner_; |
| 104 | 104 |
| 105 private: | 105 private: |
| 106 TestingProfile profile_; | 106 TestingProfile profile_; |
| 107 bool extensions_disabled_; | 107 bool extensions_disabled_; |
| 108 DISALLOW_COPY_AND_ASSIGN(TestExtensionPrefs); | 108 DISALLOW_COPY_AND_ASSIGN(TestExtensionPrefs); |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 } // namespace extensions | 111 } // namespace extensions |
| 112 | 112 |
| 113 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_PREFS_H_ | 113 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_PREFS_H_ |
| OLD | NEW |