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

Unified Diff: sync/engine/non_blocking_type_commit_contribution.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/engine/net/url_translator.cc ('k') | sync/engine/non_blocking_type_commit_contribution.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/non_blocking_type_commit_contribution.h
diff --git a/sync/engine/non_blocking_type_commit_contribution.h b/sync/engine/non_blocking_type_commit_contribution.h
deleted file mode 100644
index df0fe282b0deb9f4d8b854111a9fa57f6e19913c..0000000000000000000000000000000000000000
--- a/sync/engine/non_blocking_type_commit_contribution.h
+++ /dev/null
@@ -1,64 +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 SYNC_ENGINE_NON_BLOCKING_TYPE_COMMIT_CONTRIBUTION_H_
-#define SYNC_ENGINE_NON_BLOCKING_TYPE_COMMIT_CONTRIBUTION_H_
-
-#include <stddef.h>
-#include <stdint.h>
-
-#include <vector>
-
-#include "base/macros.h"
-#include "sync/engine/commit_contribution.h"
-#include "sync/protocol/sync.pb.h"
-
-namespace syncer_v2 {
-
-class ModelTypeWorker;
-
-// A non-blocking sync type's contribution to an outgoing commit message.
-//
-// Helps build a commit message and process its response. It collaborates
-// closely with the ModelTypeWorker.
-class NonBlockingTypeCommitContribution : public syncer::CommitContribution {
- public:
- NonBlockingTypeCommitContribution(
- const sync_pb::DataTypeContext& context,
- const google::protobuf::RepeatedPtrField<sync_pb::SyncEntity>& entities,
- ModelTypeWorker* worker);
- ~NonBlockingTypeCommitContribution() override;
-
- // Implementation of CommitContribution
- void AddToCommitMessage(sync_pb::ClientToServerMessage* msg) override;
- syncer::SyncerError ProcessCommitResponse(
- const sync_pb::ClientToServerResponse& response,
- syncer::sessions::StatusController* status) override;
- void CleanUp() override;
- size_t GetNumEntries() const override;
-
- private:
- // A non-owned pointer back to the object that created this contribution.
- ModelTypeWorker* const worker_;
-
- // The type-global context information.
- const sync_pb::DataTypeContext context_;
-
- // The set of entities to be committed, serialized as SyncEntities.
- const google::protobuf::RepeatedPtrField<sync_pb::SyncEntity> entities_;
-
- // The index in the commit message where this contribution's entities are
- // added. Used to correlate per-item requests with per-item responses.
- size_t entries_start_index_;
-
- // A flag used to ensure this object's contract is respected. Helps to check
- // that CleanUp() is called before the object is destructed.
- bool cleaned_up_;
-
- DISALLOW_COPY_AND_ASSIGN(NonBlockingTypeCommitContribution);
-};
-
-} // namespace syncer_v2
-
-#endif // SYNC_ENGINE_NON_BLOCKING_TYPE_COMMIT_CONTRIBUTION_H_
« no previous file with comments | « sync/engine/net/url_translator.cc ('k') | sync/engine/non_blocking_type_commit_contribution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698