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

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

Issue 1132013004: [Sync] Refactoring polling to be reliable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Full patch 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
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
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_
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