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

Side by Side Diff: components/sync_driver/sync_prefs.h

Issue 1144443004: Revert of [Sync] Refactoring polling to be reliable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « components/sync_driver/pref_names.cc ('k') | components/sync_driver/sync_prefs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
86 bool HasKeepEverythingSynced() const; 83 bool HasKeepEverythingSynced() const;
87 void SetKeepEverythingSynced(bool keep_everything_synced); 84 void SetKeepEverythingSynced(bool keep_everything_synced);
88 85
89 // The returned set is guaranteed to be a subset of 86 // The returned set is guaranteed to be a subset of
90 // |registered_types|. Returns |registered_types| directly if 87 // |registered_types|. Returns |registered_types| directly if
91 // HasKeepEverythingSynced() is true. 88 // HasKeepEverythingSynced() is true.
92 syncer::ModelTypeSet GetPreferredDataTypes( 89 syncer::ModelTypeSet GetPreferredDataTypes(
93 syncer::ModelTypeSet registered_types) const; 90 syncer::ModelTypeSet registered_types) const;
94 // |preferred_types| should be a subset of |registered_types|. All 91 // |preferred_types| should be a subset of |registered_types|. All
95 // types in |preferred_types| are marked preferred, and all types in 92 // types in |preferred_types| are marked preferred, and all types in
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // etc. 172 // etc.
176 typedef std::map<syncer::ModelType, syncer::ModelTypeSet> PrefGroupsMap; 173 typedef std::map<syncer::ModelType, syncer::ModelTypeSet> PrefGroupsMap;
177 PrefGroupsMap pref_groups_; 174 PrefGroupsMap pref_groups_;
178 175
179 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); 176 DISALLOW_COPY_AND_ASSIGN(SyncPrefs);
180 }; 177 };
181 178
182 } // namespace sync_driver 179 } // namespace sync_driver
183 180
184 #endif // COMPONENTS_SYNC_DRIVER_SYNC_PREFS_H_ 181 #endif // COMPONENTS_SYNC_DRIVER_SYNC_PREFS_H_
OLDNEW
« no previous file with comments | « components/sync_driver/pref_names.cc ('k') | components/sync_driver/sync_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698