Index: chrome/browser/sync/engine/syncer_thread.h |
=================================================================== |
--- chrome/browser/sync/engine/syncer_thread.h (revision 72686) |
+++ chrome/browser/sync/engine/syncer_thread.h (working copy) |
@@ -49,9 +49,6 @@ |
FRIEND_TEST_ALL_PREFIXES(SyncerThreadWithSyncerTest, NudgeWithDataTypes); |
FRIEND_TEST_ALL_PREFIXES(SyncerThreadWithSyncerTest, |
NudgeWithDataTypesCoalesced); |
- FRIEND_TEST_ALL_PREFIXES(SyncerThreadWithSyncerTest, NudgeWithPayloads); |
- FRIEND_TEST_ALL_PREFIXES(SyncerThreadWithSyncerTest, |
- NudgeWithPayloadsCoalesced); |
FRIEND_TEST_ALL_PREFIXES(SyncerThreadWithSyncerTest, Throttling); |
FRIEND_TEST_ALL_PREFIXES(SyncerThreadWithSyncerTest, AuthInvalid); |
FRIEND_TEST_ALL_PREFIXES(SyncerThreadWithSyncerTest, Pause); |
@@ -141,16 +138,8 @@ |
virtual void NudgeSyncerWithDataTypes( |
int milliseconds_from_now, |
NudgeSource source, |
- const syncable::ModelTypeBitSet& model_types); |
+ const syncable::ModelTypeBitSet& model_type); |
- // Same as |NudgeSyncer|, but supports including a payload for passing on to |
- // the download updates command. Datatypes with payloads are also considered |
- // to have caused a nudged to occur and treated accordingly. |
- virtual void NudgeSyncerWithPayloads( |
- int milliseconds_from_now, |
- NudgeSource source, |
- const sessions::TypePayloadMap& model_types_with_payloads); |
- |
void SetNotificationsEnabled(bool notifications_enabled); |
// Call this when a directory is opened |
@@ -200,13 +189,9 @@ |
// check pending_nudge_time_.) |
NudgeSource pending_nudge_source_; |
- // Map of all datatypes that are requesting a nudge. Can be union |
- // from multiple nudges that are coalesced. In addition, we |
- // optionally track a payload associated with each datatype (most recent |
- // payload overwrites old ones). These payloads are used by the download |
- // updates command and can contain datatype specific information the server |
- // might use. |
- sessions::TypePayloadMap pending_nudge_types_; |
+ // BitSet of the datatypes that have triggered the current nudge |
+ // (can be union of various bitsets when multiple nudges are coalesced) |
+ syncable::ModelTypeBitSet pending_nudge_types_; |
// null iff there is no pending nudge. |
base::TimeTicks pending_nudge_time_; |
@@ -295,7 +280,7 @@ |
sessions::SyncSourceInfo MakeSyncSourceInfo( |
bool nudged, |
NudgeSource nudge_source, |
- const sessions::TypePayloadMap& model_types_with_payloads, |
+ const syncable::ModelTypeBitSet& nudge_types, |
bool* initial_sync); |
int UserIdleTime(); |
@@ -342,7 +327,7 @@ |
void NudgeSyncImpl( |
int milliseconds_from_now, |
NudgeSource source, |
- const sessions::TypePayloadMap& model_types_with_payloads); |
+ const syncable::ModelTypeBitSet& model_types); |
#if defined(OS_LINUX) |
// On Linux, we need this information in order to query idle time. |