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

Unified Diff: sync/api/data_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/conflict_resolution.cc ('k') | sync/api/entity_change.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/data_batch.h
diff --git a/sync/api/data_batch.h b/sync/api/data_batch.h
deleted file mode 100644
index bdb2b06c15499825946fa060e71888f377fca12c..0000000000000000000000000000000000000000
--- a/sync/api/data_batch.h
+++ /dev/null
@@ -1,37 +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_DATA_BATCH_H_
-#define SYNC_API_DATA_BATCH_H_
-
-#include <algorithm>
-#include <memory>
-#include <string>
-#include <utility>
-
-#include "sync/api/entity_data.h"
-#include "sync/base/sync_export.h"
-
-namespace syncer_v2 {
-
-typedef std::pair<std::string, std::unique_ptr<EntityData>> TagAndData;
-
-// Interface used by the processor to read data requested from the service.
-class SYNC_EXPORT 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 TagAndData Next() = 0;
-};
-
-} // namespace syncer_v2
-
-#endif // SYNC_API_DATA_BATCH_H_
« no previous file with comments | « sync/api/conflict_resolution.cc ('k') | sync/api/entity_change.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698