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

Unified Diff: components/sync/api/data_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/conflict_resolution.cc ('k') | components/sync/api/data_type_error_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/api/data_batch.h
diff --git a/components/sync/api/data_batch.h b/components/sync/api/data_batch.h
deleted file mode 100644
index b8d486f953a4f0d7e0f3b53aea03819f11a7d8fc..0000000000000000000000000000000000000000
--- a/components/sync/api/data_batch.h
+++ /dev/null
@@ -1,36 +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_DATA_BATCH_H_
-#define COMPONENTS_SYNC_API_DATA_BATCH_H_
-
-#include <algorithm>
-#include <memory>
-#include <string>
-#include <utility>
-
-#include "components/sync/api/entity_data.h"
-
-namespace syncer {
-
-typedef std::pair<std::string, std::unique_ptr<EntityData>> KeyAndData;
-
-// Interface used by the processor to read data requested from the service.
-class DataBatch {
- public:
- DataBatch() {}
- virtual ~DataBatch() {}
-
- // Returns if the data batch has another pair or not.
- virtual bool HasNext() const = 0;
-
- // Returns a pair of storage tag and owned entity data object. Invoking this
- // method will remove the pair from the batch, and should not be called if
- // HasNext() returns false.
- virtual KeyAndData Next() = 0;
-};
-
-} // namespace syncer
-
-#endif // COMPONENTS_SYNC_API_DATA_BATCH_H_
« no previous file with comments | « components/sync/api/conflict_resolution.cc ('k') | components/sync/api/data_type_error_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698