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

Unified Diff: components/sync/api/metadata_batch.h

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. Created 4 years, 2 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 | « components/sync/api/local_change_observer.h ('k') | components/sync/api/metadata_batch.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/api/metadata_batch.h
diff --git a/components/sync/api/metadata_batch.h b/components/sync/api/metadata_batch.h
deleted file mode 100644
index 01393a32b283453cf5bc721bfbc0dcb5cd0575a1..0000000000000000000000000000000000000000
--- a/components/sync/api/metadata_batch.h
+++ /dev/null
@@ -1,47 +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 COMPONENTS_SYNC_API_METADATA_BATCH_H_
-#define COMPONENTS_SYNC_API_METADATA_BATCH_H_
-
-#include <map>
-#include <string>
-
-#include "components/sync/protocol/entity_metadata.pb.h"
-#include "components/sync/protocol/model_type_state.pb.h"
-
-namespace syncer {
-
-// Map of storage keys to EntityMetadata proto.
-typedef std::map<std::string, sync_pb::EntityMetadata> EntityMetadataMap;
-
-// Container used to pass sync metadata from services to their processor.
-class 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 |storage_key| to the batch.
- void AddMetadata(const std::string& storage_key,
- const sync_pb::EntityMetadata& metadata);
-
- // Get the ModelTypeState for this batch.
- const sync_pb::ModelTypeState& GetModelTypeState() const;
-
- // Set the ModelTypeState for this batch.
- void SetModelTypeState(const sync_pb::ModelTypeState& state);
-
- private:
- EntityMetadataMap metadata_map_;
- sync_pb::ModelTypeState state_;
-};
-
-} // namespace syncer
-
-#endif // COMPONENTS_SYNC_API_METADATA_BATCH_H_
« no previous file with comments | « components/sync/api/local_change_observer.h ('k') | components/sync/api/metadata_batch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698