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 COMPONENTS_SYNC_DRIVER_SYNC_PREFS_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_PREFS_H_ |
6 #define COMPONENTS_SYNC_DRIVER_SYNC_PREFS_H_ | 6 #define COMPONENTS_SYNC_DRIVER_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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 bool SyncHasAuthError() const; | 74 bool SyncHasAuthError() const; |
75 void SetSyncAuthError(bool error); | 75 void SetSyncAuthError(bool error); |
76 | 76 |
77 bool IsStartSuppressed() const; | 77 bool IsStartSuppressed() const; |
78 void SetStartSuppressed(bool is_suppressed); | 78 void SetStartSuppressed(bool is_suppressed); |
79 | 79 |
80 base::Time GetLastSyncedTime() const; | 80 base::Time GetLastSyncedTime() const; |
81 void SetLastSyncedTime(base::Time time); | 81 void SetLastSyncedTime(base::Time time); |
82 | 82 |
| 83 base::Time GetLastPollTime() const; |
| 84 void SetLastPollTime(base::Time time); |
| 85 |
83 bool HasKeepEverythingSynced() const; | 86 bool HasKeepEverythingSynced() const; |
84 void SetKeepEverythingSynced(bool keep_everything_synced); | 87 void SetKeepEverythingSynced(bool keep_everything_synced); |
85 | 88 |
86 // The returned set is guaranteed to be a subset of | 89 // The returned set is guaranteed to be a subset of |
87 // |registered_types|. Returns |registered_types| directly if | 90 // |registered_types|. Returns |registered_types| directly if |
88 // HasKeepEverythingSynced() is true. | 91 // HasKeepEverythingSynced() is true. |
89 syncer::ModelTypeSet GetPreferredDataTypes( | 92 syncer::ModelTypeSet GetPreferredDataTypes( |
90 syncer::ModelTypeSet registered_types) const; | 93 syncer::ModelTypeSet registered_types) const; |
91 // |preferred_types| should be a subset of |registered_types|. All | 94 // |preferred_types| should be a subset of |registered_types|. All |
92 // types in |preferred_types| are marked preferred, and all types in | 95 // types in |preferred_types| are marked preferred, and all types in |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // etc. | 178 // etc. |
176 typedef std::map<syncer::ModelType, syncer::ModelTypeSet> PrefGroupsMap; | 179 typedef std::map<syncer::ModelType, syncer::ModelTypeSet> PrefGroupsMap; |
177 PrefGroupsMap pref_groups_; | 180 PrefGroupsMap pref_groups_; |
178 | 181 |
179 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); | 182 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); |
180 }; | 183 }; |
181 | 184 |
182 } // namespace sync_driver | 185 } // namespace sync_driver |
183 | 186 |
184 #endif // COMPONENTS_SYNC_DRIVER_SYNC_PREFS_H_ | 187 #endif // COMPONENTS_SYNC_DRIVER_SYNC_PREFS_H_ |
OLD | NEW |