Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / sync / engine / commit_queue.h
blob59219d4cd44adce0670d25b48710ebdd13552127
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.
5 #ifndef SYNC_ENGINE_COMMIT_QUEUE_H_
6 #define SYNC_ENGINE_COMMIT_QUEUE_H_
8 #include "sync/internal_api/public/non_blocking_sync_common.h"
10 namespace syncer_v2 {
12 // Interface used by a synced data type to issue requests to the sync backend.
13 class SYNC_EXPORT_PRIVATE CommitQueue {
14 public:
15 CommitQueue();
16 virtual ~CommitQueue();
18 // Entry point for the ModelTypeProcessor to send commit requests.
19 virtual void EnqueueForCommit(const CommitRequestDataList& list) = 0;
22 } // namespace syncer
24 #endif // SYNC_ENGINE_COMMIT_QUEUE_H_