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

Side by Side Diff: sync/engine/model_type_processor.h

Issue 1382743004: [Sync] Move ModelTypeProcessor* and rename *Impl to Shared*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 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
« no previous file with comments | « sync/engine/model_type_entity_unittest.cc ('k') | sync/engine/model_type_processor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SYNC_ENGINE_MODEL_TYPE_PROCESSOR_H_
6 #define SYNC_ENGINE_MODEL_TYPE_PROCESSOR_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "sync/base/sync_export.h"
10 #include "sync/engine/commit_queue.h"
11 #include "sync/internal_api/public/non_blocking_sync_common.h"
12
13 namespace syncer_v2 {
14
15 // Interface used by sync backend to issue requests to a synced data type.
16 class SYNC_EXPORT_PRIVATE ModelTypeProcessor {
17 public:
18 ModelTypeProcessor();
19 virtual ~ModelTypeProcessor();
20
21 // Callback used to process the handshake response.
22 virtual void OnConnect(scoped_ptr<CommitQueue> commit_queue) = 0;
23
24 // Informs this object that some of its commit requests have been
25 // successfully serviced.
26 virtual void OnCommitCompleted(
27 const DataTypeState& type_state,
28 const CommitResponseDataList& response_list) = 0;
29
30 // Informs this object that there are some incoming updates is should
31 // handle.
32 virtual void OnUpdateReceived(
33 const DataTypeState& type_state,
34 const UpdateResponseDataList& response_list,
35 const UpdateResponseDataList& pending_updates) = 0;
36 };
37
38 } // namespace syncer
39
40 #endif // SYNC_ENGINE_MODEL_TYPE_PROCESSOR_H_
OLDNEW
« no previous file with comments | « sync/engine/model_type_entity_unittest.cc ('k') | sync/engine/model_type_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698