• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 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_FILE_STATUS_OBSERVER_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_FILE_STATUS_OBSERVER_H_
7 
8 #include "base/basictypes.h"
9 #include "chrome/browser/sync_file_system/sync_action.h"
10 #include "chrome/browser/sync_file_system/sync_direction.h"
11 #include "chrome/browser/sync_file_system/sync_file_status.h"
12 
13 namespace fileapi {
14 class FileSystemURL;
15 }
16 
17 namespace sync_file_system {
18 
19 class FileStatusObserver {
20  public:
FileStatusObserver()21   FileStatusObserver() {}
~FileStatusObserver()22   virtual ~FileStatusObserver() {}
23 
24   virtual void OnFileStatusChanged(const fileapi::FileSystemURL& url,
25                                    SyncFileStatus sync_status,
26                                    SyncAction action_taken,
27                                    SyncDirection direction) = 0;
28 
29  private:
30   DISALLOW_COPY_AND_ASSIGN(FileStatusObserver);
31 };
32 
33 }  // namespace sync_file_system
34 
35 #endif  // CHROME_BROWSER_SYNC_FILE_SYSTEM_FILE_STATUS_OBSERVER_H_
36