summaryrefslogtreecommitdiffstats
path: root/sync/engine/commit_queue.h
blob: a5355061a660c0e513ed232de5472fd46c88a795 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// 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 SYNC_ENGINE_COMMIT_QUEUE_H_
#define SYNC_ENGINE_COMMIT_QUEUE_H_

#include "sync/internal_api/public/non_blocking_sync_common.h"

namespace syncer_v2 {

// Interface used by a synced data type to issue requests to the sync backend.
class SYNC_EXPORT CommitQueue {
 public:
  CommitQueue();
  virtual ~CommitQueue();

  // Entry point for the ModelTypeProcessor to send commit requests.
  virtual void EnqueueForCommit(const CommitRequestDataList& list) = 0;
};

}  // namespace syncer_v2

#endif  // SYNC_ENGINE_COMMIT_QUEUE_H_