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

Side by Side Diff: chrome/browser/extensions/external_pref_loader.h

Issue 1305213009: Componentize PrefSyncableService and support classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pref_service_syncable
Patch Set: Add missing dependency on //sync:test_support_sync_api for unit tests with gn Created 5 years, 3 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
OLDNEW
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 <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/scoped_observer.h" 12 #include "base/scoped_observer.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/extensions/external_loader.h" 14 #include "chrome/browser/extensions/external_loader.h"
15 #include "chrome/browser/prefs/pref_service_syncable_observer.h"
16 #include "chrome/browser/sync/profile_sync_service.h" 15 #include "chrome/browser/sync/profile_sync_service.h"
17 #include "components/sync_driver/sync_service_observer.h" 16 #include "components/sync_driver/sync_service_observer.h"
17 #include "components/syncable_prefs/pref_service_syncable_observer.h"
18 18
19 class PrefServiceSyncable; 19 class PrefServiceSyncable;
20 class Profile; 20 class Profile;
21 21
22 namespace extensions { 22 namespace extensions {
23 23
24 // A specialization of the ExternalLoader that uses a json file to 24 // A specialization of the ExternalLoader that uses a json file to
25 // look up which external extensions are registered. 25 // look up which external extensions are registered.
26 // Instances of this class are expected to be created and destroyed on the UI 26 // Instances of this class are expected to be created and destroyed on the UI
27 // thread and they are expecting public method calls from the UI thread. 27 // thread and they are expecting public method calls from the UI thread.
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 base::FilePath fake_base_path_; 132 base::FilePath fake_base_path_;
133 scoped_ptr<base::DictionaryValue> testing_prefs_; 133 scoped_ptr<base::DictionaryValue> testing_prefs_;
134 134
135 DISALLOW_COPY_AND_ASSIGN(ExternalTestingLoader); 135 DISALLOW_COPY_AND_ASSIGN(ExternalTestingLoader);
136 }; 136 };
137 137
138 } // namespace extensions 138 } // namespace extensions
139 139
140 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PREF_LOADER_H_ 140 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PREF_LOADER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/external_policy_loader_unittest.cc ('k') | chrome/browser/extensions/external_pref_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698