OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_FILE_STATUS_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_FILE_STATUS_OBSERVER_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_FILE_STATUS_OBSERVER_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_FILE_STATUS_OBSERVER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/sync_file_system/sync_action.h" | 9 #include "chrome/browser/sync_file_system/sync_action.h" |
10 #include "chrome/browser/sync_file_system/sync_direction.h" | 10 #include "chrome/browser/sync_file_system/sync_direction.h" |
11 #include "chrome/browser/sync_file_system/sync_file_status.h" | 11 #include "chrome/browser/sync_file_system/sync_file_status.h" |
12 #include "chrome/browser/sync_file_system/sync_file_type.h" | 12 #include "chrome/browser/sync_file_system/sync_file_type.h" |
13 | 13 |
14 namespace storage { | 14 namespace storage { |
15 class FileSystemURL; | 15 class FileSystemURL; |
16 } | 16 } |
17 | 17 |
18 namespace sync_file_system { | 18 namespace sync_file_system { |
19 | 19 |
20 class FileStatusObserver { | 20 class FileStatusObserver { |
21 public: | 21 public: |
22 FileStatusObserver() {} | 22 FileStatusObserver() {} |
23 virtual ~FileStatusObserver() {} | 23 virtual ~FileStatusObserver() {} |
24 | 24 |
25 virtual void OnFileStatusChanged(const storage::FileSystemURL& url, | 25 virtual void OnFileStatusChanged(const storage::FileSystemURL& url, |
26 SyncFileType file_type, | 26 SyncFileType file_type, |
27 SyncFileStatus sync_status, | 27 SyncFileStatus sync_status, |
28 SyncAction action_taken, | 28 SyncAction action_taken, |
29 SyncDirection direction) = 0; | 29 SyncDirection direction) = 0; |
30 | 30 |
31 private: | 31 private: |
32 DISALLOW_COPY_AND_ASSIGN(FileStatusObserver); | 32 DISALLOW_COPY_AND_ASSIGN(FileStatusObserver); |
33 }; | 33 }; |
34 | 34 |
35 } // namespace sync_file_system | 35 } // namespace sync_file_system |
36 | 36 |
37 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_FILE_STATUS_OBSERVER_H_ | 37 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_FILE_STATUS_OBSERVER_H_ |
OLD | NEW |