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

Side by Side Diff: components/syncable_prefs/pref_model_associator_client.h

Issue 2459823002: [Sync] Rename syncable_prefs to sync_preferences. (Closed)
Patch Set: Created 4 years, 1 month 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_SYNCABLE_PREFS_PREF_MODEL_ASSOCIATOR_CLIENT_H_
6 #define COMPONENTS_SYNCABLE_PREFS_PREF_MODEL_ASSOCIATOR_CLIENT_H_
7
8 #include <string>
9
10 #include "base/macros.h"
11
12 namespace syncable_prefs {
13
14 // This class allows the embedder to configure the PrefModelAssociator to
15 // have a different behaviour when receiving preference synchronisations
16 // events from the server.
17 class PrefModelAssociatorClient {
18 public:
19 // Returns true if the preference named |pref_name| is a list preference
20 // whose server value is merged with local value during synchronisation.
21 virtual bool IsMergeableListPreference(
22 const std::string& pref_name) const = 0;
23
24 // Returns true if the preference named |pref_name| is a dictionary preference
25 // whose server value is merged with local value during synchronisation.
26 virtual bool IsMergeableDictionaryPreference(
27 const std::string& pref_name) const = 0;
28
29 protected:
30 PrefModelAssociatorClient() {}
31 virtual ~PrefModelAssociatorClient() {}
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(PrefModelAssociatorClient);
35 };
36
37 } // namespace syncable_prefs
38
39 #endif // COMPONENTS_SYNCABLE_PREFS_PREF_MODEL_ASSOCIATOR_CLIENT_H_
OLDNEW
« no previous file with comments | « components/syncable_prefs/pref_model_associator.cc ('k') | components/syncable_prefs/pref_model_associator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698