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

Unified Diff: components/sync/core/model_type_processor.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
« no previous file with comments | « components/sync/core/model_type_connector.cc ('k') | components/sync/core/model_type_processor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/core/model_type_processor.h
diff --git a/components/sync/core/model_type_processor.h b/components/sync/core/model_type_processor.h
deleted file mode 100644
index 761f1e6862627539c92427dc95c350ea625a604d..0000000000000000000000000000000000000000
--- a/components/sync/core/model_type_processor.h
+++ /dev/null
@@ -1,47 +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_MODEL_TYPE_PROCESSOR_H_
-#define COMPONENTS_SYNC_CORE_MODEL_TYPE_PROCESSOR_H_
-
-#include <memory>
-
-#include "components/sync/core/non_blocking_sync_common.h"
-#include "components/sync/protocol/model_type_state.pb.h"
-
-namespace syncer {
-class CommitQueue;
-
-// Interface used by sync backend to issue requests to a synced data type.
-class ModelTypeProcessor {
- public:
- ModelTypeProcessor();
- virtual ~ModelTypeProcessor();
-
- // Connect this processor to the sync engine via |commit_queue|. Once called,
- // the processor will send any pending and future commits via this channel.
- // This can only be called multiple times if the processor is disconnected
- // (via the DataTypeController) in between.
- virtual void ConnectSync(std::unique_ptr<CommitQueue> commit_queue) = 0;
-
- // Disconnect this processor from the sync engine. Change metadata will
- // continue being processed and persisted, but no commits can be made until
- // the next time sync is connected.
- virtual void DisconnectSync() = 0;
-
- // Informs this object that some of its commit requests have been
- // successfully serviced.
- virtual void OnCommitCompleted(
- const sync_pb::ModelTypeState& type_state,
- const CommitResponseDataList& response_list) = 0;
-
- // Informs this object that there are some incoming updates is should
- // handle.
- virtual void OnUpdateReceived(const sync_pb::ModelTypeState& type_state,
- const UpdateResponseDataList& updates) = 0;
-};
-
-} // namespace syncer
-
-#endif // COMPONENTS_SYNC_CORE_MODEL_TYPE_PROCESSOR_H_
« no previous file with comments | « components/sync/core/model_type_connector.cc ('k') | components/sync/core/model_type_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698