1// Copyright 2013 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 CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_TASK_H_
6#define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_TASK_H_
7
8#include "chrome/browser/sync_file_system/sync_callbacks.h"
9
10namespace sync_file_system {
11
12class SyncTask {
13 public:
14  SyncTask() : used_network_(false) {}
15  virtual ~SyncTask() {}
16  virtual void Run(const SyncStatusCallback& callback) = 0;
17
18  bool used_network() { return used_network_; }
19
20 protected:
21  void set_used_network(bool used_network) {
22    used_network_ = used_network;
23  }
24
25 private:
26  bool used_network_;
27
28  DISALLOW_COPY_AND_ASSIGN(SyncTask);
29};
30
31}  // namespace sync_file_system
32
33#endif  // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_TASK_H_
34