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

Side by Side Diff: chrome/browser/sync/sync_prefs.h

Issue 14655009: Client changes for disabled dasher account (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 7 years, 7 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_SYNC_SYNC_PREFS_H_ 5 #ifndef CHROME_BROWSER_SYNC_SYNC_PREFS_H_
6 #define CHROME_BROWSER_SYNC_SYNC_PREFS_H_ 6 #define CHROME_BROWSER_SYNC_SYNC_PREFS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 public: 52 public:
53 // |pref_service| may be NULL (for unit tests), but in that case no 53 // |pref_service| may be NULL (for unit tests), but in that case no
54 // setter methods should be called. Does not take ownership of 54 // setter methods should be called. Does not take ownership of
55 // |pref_service|. 55 // |pref_service|.
56 explicit SyncPrefs(PrefService* pref_service); 56 explicit SyncPrefs(PrefService* pref_service);
57 57
58 virtual ~SyncPrefs(); 58 virtual ~SyncPrefs();
59 59
60 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); 60 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry);
61 61
62 // Checks if sync is enabled for the profile that owns |io_data|. This must
63 // be invoked on the IO thread, and can be used to check if sync is enabled
64 // on that thread.
65 static bool IsSyncAccessibleOnIOThread(ProfileIOData* io_data);
66
67 void AddSyncPrefObserver(SyncPrefObserver* sync_pref_observer); 62 void AddSyncPrefObserver(SyncPrefObserver* sync_pref_observer);
68 void RemoveSyncPrefObserver(SyncPrefObserver* sync_pref_observer); 63 void RemoveSyncPrefObserver(SyncPrefObserver* sync_pref_observer);
69 64
70 // Clears important sync preferences. 65 // Clears important sync preferences.
71 void ClearPreferences(); 66 void ClearPreferences();
72 67
73 // Getters and setters for global sync prefs. 68 // Getters and setters for global sync prefs.
74 69
75 bool HasSyncSetupCompleted() const; 70 bool HasSyncSetupCompleted() const;
76 void SetSyncSetupCompleted(); 71 void SetSyncSetupCompleted();
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // etc. 166 // etc.
172 typedef std::map<syncer::ModelType, syncer::ModelTypeSet> PrefGroupsMap; 167 typedef std::map<syncer::ModelType, syncer::ModelTypeSet> PrefGroupsMap;
173 PrefGroupsMap pref_groups_; 168 PrefGroupsMap pref_groups_;
174 169
175 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); 170 DISALLOW_COPY_AND_ASSIGN(SyncPrefs);
176 }; 171 };
177 172
178 } // namespace browser_sync 173 } // namespace browser_sync
179 174
180 #endif // CHROME_BROWSER_SYNC_SYNC_PREFS_H_ 175 #endif // CHROME_BROWSER_SYNC_SYNC_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698