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_EXTERNAL_PREF_LOADER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_PREF_LOADER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_PREF_LOADER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_PREF_LOADER_H_ |
7 | 7 |
| 8 #include <memory> |
8 #include <string> | 9 #include <string> |
9 | 10 |
10 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 12 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | |
13 #include "base/scoped_observer.h" | 13 #include "base/scoped_observer.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/browser/extensions/external_loader.h" | 15 #include "chrome/browser/extensions/external_loader.h" |
16 #include "components/browser_sync/browser/profile_sync_service.h" | 16 #include "components/browser_sync/browser/profile_sync_service.h" |
17 #include "components/sync_driver/sync_service_observer.h" | 17 #include "components/sync_driver/sync_service_observer.h" |
18 #include "components/syncable_prefs/pref_service_syncable_observer.h" | 18 #include "components/syncable_prefs/pref_service_syncable_observer.h" |
19 | 19 |
20 class Profile; | 20 class Profile; |
21 | 21 |
22 namespace syncable_prefs { | 22 namespace syncable_prefs { |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 protected: | 129 protected: |
130 void StartLoading() override; | 130 void StartLoading() override; |
131 | 131 |
132 private: | 132 private: |
133 friend class base::RefCountedThreadSafe<ExternalLoader>; | 133 friend class base::RefCountedThreadSafe<ExternalLoader>; |
134 | 134 |
135 ~ExternalTestingLoader() override; | 135 ~ExternalTestingLoader() override; |
136 | 136 |
137 base::FilePath fake_base_path_; | 137 base::FilePath fake_base_path_; |
138 scoped_ptr<base::DictionaryValue> testing_prefs_; | 138 std::unique_ptr<base::DictionaryValue> testing_prefs_; |
139 | 139 |
140 DISALLOW_COPY_AND_ASSIGN(ExternalTestingLoader); | 140 DISALLOW_COPY_AND_ASSIGN(ExternalTestingLoader); |
141 }; | 141 }; |
142 | 142 |
143 } // namespace extensions | 143 } // namespace extensions |
144 | 144 |
145 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PREF_LOADER_H_ | 145 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PREF_LOADER_H_ |
OLD | NEW |