| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SYNC_EVENT_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_EVENT_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_EVENT_OBSERVER_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_EVENT_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/sync_file_system/file_status_observer.h" | 10 #include "chrome/browser/sync_file_system/file_status_observer.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 // Reports there was a state change in the sync file system backend. | 44 // Reports there was a state change in the sync file system backend. |
| 45 // If |app_origin| is empty, then broadcast to all registered apps. | 45 // If |app_origin| is empty, then broadcast to all registered apps. |
| 46 virtual void OnSyncStateUpdated(const GURL& app_origin, | 46 virtual void OnSyncStateUpdated(const GURL& app_origin, |
| 47 SyncServiceState state, | 47 SyncServiceState state, |
| 48 const std::string& description) = 0; | 48 const std::string& description) = 0; |
| 49 | 49 |
| 50 // Reports the file |url| was updated and resulted in |result| | 50 // Reports the file |url| was updated and resulted in |result| |
| 51 // by the sync file system backend. | 51 // by the sync file system backend. |
| 52 virtual void OnFileSynced(const fileapi::FileSystemURL& url, | 52 virtual void OnFileSynced(const fileapi::FileSystemURL& url, |
| 53 fileapi::SyncFileStatus status, | 53 SyncFileStatus status, |
| 54 fileapi::SyncAction action, | 54 SyncAction action, |
| 55 fileapi::SyncDirection direction) = 0; | 55 SyncDirection direction) = 0; |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 DISALLOW_COPY_AND_ASSIGN(SyncEventObserver); | 58 DISALLOW_COPY_AND_ASSIGN(SyncEventObserver); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace sync_file_system | 61 } // namespace sync_file_system |
| 62 | 62 |
| 63 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_EVENT_OBSERVER_H_ | 63 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_EVENT_OBSERVER_H_ |
| OLD | NEW |