| 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/basictypes.h" |
| 9 #include "webkit/fileapi/syncable/sync_action.h" | 9 #include "webkit/fileapi/syncable/sync_action.h" |
| 10 #include "webkit/fileapi/syncable/sync_direction.h" | 10 #include "webkit/fileapi/syncable/sync_direction.h" |
| 11 #include "webkit/fileapi/syncable/sync_file_status.h" | 11 #include "webkit/fileapi/syncable/sync_file_status.h" |
| 12 | 12 |
| 13 namespace fileapi { | 13 namespace fileapi { |
| 14 class FileSystemURL; | 14 class FileSystemURL; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace sync_file_system { | 17 namespace sync_file_system { |
| 18 | 18 |
| 19 class FileStatusObserver { | 19 class FileStatusObserver { |
| 20 public: | 20 public: |
| 21 FileStatusObserver() {} | 21 FileStatusObserver() {} |
| 22 virtual ~FileStatusObserver() {} | 22 virtual ~FileStatusObserver() {} |
| 23 | 23 |
| 24 virtual void OnFileStatusChanged(const fileapi::FileSystemURL& url, | 24 virtual void OnFileStatusChanged(const fileapi::FileSystemURL& url, |
| 25 fileapi::SyncFileStatus sync_status, | 25 SyncFileStatus sync_status, |
| 26 fileapi::SyncAction action_taken, | 26 SyncAction action_taken, |
| 27 fileapi::SyncDirection direction) = 0; | 27 SyncDirection direction) = 0; |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 DISALLOW_COPY_AND_ASSIGN(FileStatusObserver); | 30 DISALLOW_COPY_AND_ASSIGN(FileStatusObserver); |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace sync_file_system | 33 } // namespace sync_file_system |
| 34 | 34 |
| 35 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_FILE_STATUS_OBSERVER_H_ | 35 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_FILE_STATUS_OBSERVER_H_ |
| OLD | NEW |