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

Unified Diff: sync/api/metadata_batch.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/api/fake_syncable_service.cc ('k') | sync/api/metadata_batch.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/metadata_batch.h
diff --git a/sync/api/metadata_batch.h b/sync/api/metadata_batch.h
deleted file mode 100644
index dd4b8d0c7dec338988274ea73d2cfd052fcc9f59..0000000000000000000000000000000000000000
--- a/sync/api/metadata_batch.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SYNC_API_METADATA_BATCH_H_
-#define SYNC_API_METADATA_BATCH_H_
-
-#include <map>
-#include <string>
-
-#include "sync/base/sync_export.h"
-#include "sync/protocol/data_type_state.pb.h"
-#include "sync/protocol/entity_metadata.pb.h"
-
-namespace syncer_v2 {
-
-// Map of client tag to EntityMetadata proto.
-typedef std::map<std::string, sync_pb::EntityMetadata> EntityMetadataMap;
-
-// Container used to pass sync metadata from services to their processor.
-class SYNC_EXPORT MetadataBatch {
- public:
- MetadataBatch();
- virtual ~MetadataBatch();
-
- // Allows the caller to take ownership of the entire metadata map. This is
- // done because the caller will probably swap out all the EntityMetadata
- // protos from the map for performance reasons.
- EntityMetadataMap&& TakeAllMetadata();
-
- // Add |metadata| for |client_tag| to the batch.
- void AddMetadata(const std::string& client_tag,
- const sync_pb::EntityMetadata& metadata);
-
- // Get the DataTypeState for this batch.
- const sync_pb::DataTypeState& GetDataTypeState() const;
-
- // Set the DataTypeState for this batch.
- void SetDataTypeState(const sync_pb::DataTypeState& state);
-
- private:
- EntityMetadataMap metadata_map_;
- sync_pb::DataTypeState state_;
-};
-
-} // namespace syncer_v2
-
-#endif // SYNC_API_METADATA_BATCH_H_
« no previous file with comments | « sync/api/fake_syncable_service.cc ('k') | sync/api/metadata_batch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698