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.
5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_TASK_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_TASK_H_
8 #include "chrome/browser/sync_file_system/sync_callbacks.h"
10 namespace sync_file_system
{
14 SyncTask() : used_network_(false) {}
15 virtual ~SyncTask() {}
16 virtual void Run(const SyncStatusCallback
& callback
) = 0;
18 bool used_network() { return used_network_
; }
21 void set_used_network(bool used_network
) {
22 used_network_
= used_network
;
28 DISALLOW_COPY_AND_ASSIGN(SyncTask
);
31 } // namespace sync_file_system
33 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_TASK_H_