Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / sync / engine / model_type_sync_proxy.h
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_SYNC_PROXY_H_
6 #define SYNC_ENGINE_MODEL_TYPE_SYNC_PROXY_H_
7
8 #include "sync/base/sync_export.h"
9 #include "sync/internal_api/public/non_blocking_sync_common.h"
10
11 namespace syncer {
12
13 // Interface used by sync backend to issue requests to a synced data type.
14 class SYNC_EXPORT_PRIVATE ModelTypeSyncProxy {
15  public:
16   ModelTypeSyncProxy();
17   virtual ~ModelTypeSyncProxy();
18
19   virtual void OnCommitCompleted(
20       const DataTypeState& type_state,
21       const CommitResponseDataList& response_list) = 0;
22   virtual void OnUpdateReceived(
23       const DataTypeState& type_state,
24       const UpdateResponseDataList& response_list,
25       const UpdateResponseDataList& pending_updates) = 0;
26 };
27
28 }  // namespace syncer
29
30 #endif  // SYNC_ENGINE_MODEL_TYPE_SYNC_PROXY_H_