diff options
author | nick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-11 01:05:38 +0000 |
---|---|---|
committer | nick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-11 01:05:38 +0000 |
commit | f753af6865f1724c3e5adde6917bb2b1f24713ce (patch) | |
tree | 35a5185cbadcbf66625fb438f893bba4e806ef68 /chrome/browser/sync/engine/syncer_proto_util.h | |
parent | 3d8a66ab748a0bcb5126b1466d311ad62db4d94d (diff) | |
download | chromium_src-f753af6865f1724c3e5adde6917bb2b1f24713ce.zip chromium_src-f753af6865f1724c3e5adde6917bb2b1f24713ce.tar.gz chromium_src-f753af6865f1724c3e5adde6917bb2b1f24713ce.tar.bz2 |
Hook up client side of per-datatype GetUpdates.
Which datatypes are fetched is dictated by the ModelSafeRoutingInfo. We change the semantic of the ModelSafeRoutingInfo so that datatypes which should not be synced are not in the map. We will do GetUpdates for GROUP_PASSIVE datatypes.
BUG=29905
TEST=included unit tests
Review URL: http://codereview.chromium.org/594024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38726 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/engine/syncer_proto_util.h')
-rwxr-xr-x | chrome/browser/sync/engine/syncer_proto_util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/sync/engine/syncer_proto_util.h b/chrome/browser/sync/engine/syncer_proto_util.h index af31251..5bf7931 100755 --- a/chrome/browser/sync/engine/syncer_proto_util.h +++ b/chrome/browser/sync/engine/syncer_proto_util.h @@ -8,6 +8,7 @@ #include <string> #include "chrome/browser/sync/syncable/blob.h" +#include "chrome/browser/sync/syncable/model_type.h" #include "chrome/browser/sync/util/sync_types.h" #include "testing/gtest/include/gtest/gtest_prod.h" // For FRIEND_TEST @@ -20,6 +21,7 @@ class SyncName; namespace sync_pb { class ClientToServerResponse; +class EntitySpecifics; } // namespace sync_pb namespace browser_sync { @@ -70,6 +72,12 @@ class SyncerProtoUtil { static const std::string& NameFromCommitEntryResponse( const CommitResponse_EntryResponse& entry); + // EntitySpecifics is used as a filter for the GetUpdates message to tell + // the server which datatypes to send back. This adds a datatype so that + // it's included in the filter. + static void AddToEntitySpecificDatatypesFilter(syncable::ModelType datatype, + sync_pb::EntitySpecifics* filter); + private: SyncerProtoUtil() {} |