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

Side by Side Diff: components/sync/engine/model_type_processor_proxy.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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_SYNC_CORE_MODEL_TYPE_PROCESSOR_PROXY_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_MODEL_TYPE_PROCESSOR_PROXY_H_
6 #define COMPONENTS_SYNC_CORE_MODEL_TYPE_PROCESSOR_PROXY_H_ 6 #define COMPONENTS_SYNC_ENGINE_MODEL_TYPE_PROCESSOR_PROXY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/sequenced_task_runner.h" 12 #include "base/sequenced_task_runner.h"
13 #include "components/sync/core/model_type_processor.h" 13 #include "components/sync/engine/model_type_processor.h"
14 14
15 namespace syncer { 15 namespace syncer {
16 16
17 class ModelTypeProcessorProxy : public ModelTypeProcessor { 17 class ModelTypeProcessorProxy : public ModelTypeProcessor {
18 public: 18 public:
19 ModelTypeProcessorProxy( 19 ModelTypeProcessorProxy(
20 const base::WeakPtr<ModelTypeProcessor>& processor, 20 const base::WeakPtr<ModelTypeProcessor>& processor,
21 const scoped_refptr<base::SequencedTaskRunner>& task_runner); 21 const scoped_refptr<base::SequencedTaskRunner>& task_runner);
22 ~ModelTypeProcessorProxy() override; 22 ~ModelTypeProcessorProxy() override;
23 23
24 void ConnectSync(std::unique_ptr<CommitQueue> worker) override; 24 void ConnectSync(std::unique_ptr<CommitQueue> worker) override;
25 void DisconnectSync() override; 25 void DisconnectSync() override;
26 void OnCommitCompleted(const sync_pb::ModelTypeState& type_state, 26 void OnCommitCompleted(const sync_pb::ModelTypeState& type_state,
27 const CommitResponseDataList& response_list) override; 27 const CommitResponseDataList& response_list) override;
28 void OnUpdateReceived(const sync_pb::ModelTypeState& type_state, 28 void OnUpdateReceived(const sync_pb::ModelTypeState& type_state,
29 const UpdateResponseDataList& updates) override; 29 const UpdateResponseDataList& updates) override;
30 30
31 private: 31 private:
32 base::WeakPtr<ModelTypeProcessor> processor_; 32 base::WeakPtr<ModelTypeProcessor> processor_;
33 scoped_refptr<base::SequencedTaskRunner> task_runner_; 33 scoped_refptr<base::SequencedTaskRunner> task_runner_;
34 }; 34 };
35 35
36 } // namespace syncer 36 } // namespace syncer
37 37
38 #endif // COMPONENTS_SYNC_CORE_MODEL_TYPE_PROCESSOR_PROXY_H_ 38 #endif // COMPONENTS_SYNC_ENGINE_MODEL_TYPE_PROCESSOR_PROXY_H_
OLDNEW
« no previous file with comments | « components/sync/engine/model_type_processor.cc ('k') | components/sync/engine/model_type_processor_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698