Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / sync_file_system / sync_task.h
blob50498b78027bb7f355648c87e6db025ca85808b6
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 {
12 class SyncTask {
13 public:
14 SyncTask() : used_network_(false) {}
15 virtual ~SyncTask() {}
16 virtual void Run(const SyncStatusCallback& callback) = 0;
18 bool used_network() { return used_network_; }
20 protected:
21 void set_used_network(bool used_network) {
22 used_network_ = used_network;
25 private:
26 bool used_network_;
28 DISALLOW_COPY_AND_ASSIGN(SyncTask);
31 } // namespace sync_file_system
33 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_TASK_H_