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/core/non_blocking_sync_common.h

Issue 2413313004: [Sync] Move the last things out of core/. (Closed)
Patch Set: Address comments. 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
Index: components/sync/core/non_blocking_sync_common.h
diff --git a/components/sync/core/non_blocking_sync_common.h b/components/sync/core/non_blocking_sync_common.h
deleted file mode 100644
index 6066a02c97e032674437db018f2de1db8d37e67b..0000000000000000000000000000000000000000
--- a/components/sync/core/non_blocking_sync_common.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright 2014 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_CORE_NON_BLOCKING_SYNC_COMMON_H_
-#define COMPONENTS_SYNC_CORE_NON_BLOCKING_SYNC_COMMON_H_
-
-#include <stdint.h>
-
-#include <string>
-#include <vector>
-
-#include "base/time/time.h"
-#include "components/sync/model/entity_data.h"
-#include "components/sync/protocol/sync.pb.h"
-
-namespace syncer {
-
-static const int64_t kUncommittedVersion = -1;
-
-struct CommitRequestData {
- CommitRequestData();
- CommitRequestData(const CommitRequestData& other);
- ~CommitRequestData();
-
- EntityDataPtr entity;
-
- // Strictly incrementing number for in-progress commits. More information
- // about its meaning can be found in comments in the files that make use of
- // this struct.
- int64_t sequence_number = 0;
- int64_t base_version = 0;
- std::string specifics_hash;
-};
-
-struct CommitResponseData {
- CommitResponseData();
- CommitResponseData(const CommitResponseData& other);
- ~CommitResponseData();
-
- std::string id;
- std::string client_tag_hash;
- int64_t sequence_number = 0;
- int64_t response_version = 0;
- std::string specifics_hash;
-};
-
-struct UpdateResponseData {
- UpdateResponseData();
- UpdateResponseData(const UpdateResponseData& other);
- ~UpdateResponseData();
-
- EntityDataPtr entity;
-
- int64_t response_version = 0;
- std::string encryption_key_name;
-};
-
-typedef std::vector<CommitRequestData> CommitRequestDataList;
-typedef std::vector<CommitResponseData> CommitResponseDataList;
-typedef std::vector<UpdateResponseData> UpdateResponseDataList;
-
-} // namespace syncer
-
-#endif // COMPONENTS_SYNC_CORE_NON_BLOCKING_SYNC_COMMON_H_
« no previous file with comments | « components/sync/core/model_type_processor_proxy.cc ('k') | components/sync/core/non_blocking_sync_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698