Chromium Code Reviews| 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 "googleurl/src/gurl.h" | |
|
kinuko
2012/11/28 07:41:13
I think forward decl would work
class GURL;
calvinlo
2012/11/28 10:43:46
Done.
| |
| 10 #include "webkit/fileapi/syncable/sync_operation_type.h" | 11 #include "webkit/fileapi/syncable/sync_operation_type.h" |
| 11 | 12 |
| 12 namespace fileapi { | 13 namespace fileapi { |
| 13 class FileSystemURL; | 14 class FileSystemURL; |
| 14 } | 15 } |
| 15 | 16 |
| 16 namespace sync_file_system { | 17 namespace sync_file_system { |
| 17 | 18 |
| 18 class SyncEventObserver { | 19 class SyncEventObserver { |
| 19 public: | 20 public: |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 42 }; | 43 }; |
| 43 | 44 |
| 44 // Reports there was a state change in the sync file system backend. | 45 // Reports there was a state change in the sync file system backend. |
| 45 // If |app_origin| is empty, then broadcast to all registered apps. | 46 // If |app_origin| is empty, then broadcast to all registered apps. |
| 46 virtual void OnSyncStateUpdated(const GURL& app_origin, | 47 virtual void OnSyncStateUpdated(const GURL& app_origin, |
| 47 SyncServiceState state, | 48 SyncServiceState state, |
| 48 const std::string& description) = 0; | 49 const std::string& description) = 0; |
| 49 | 50 |
| 50 // Reports the file |url| was updated for |operation| | 51 // Reports the file |url| was updated for |operation| |
| 51 // by the sync file system backend. | 52 // by the sync file system backend. |
| 52 virtual void OnFileSynced(fileapi::SyncStatusCode status, | 53 virtual void OnFileSynced(fileapi::SyncOperationType operation, |
| 53 fileapi::SyncOperationType operation, | |
| 54 const fileapi::FileSystemURL& url) = 0; | 54 const fileapi::FileSystemURL& url) = 0; |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 DISALLOW_COPY_AND_ASSIGN(SyncEventObserver); | 57 DISALLOW_COPY_AND_ASSIGN(SyncEventObserver); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace sync_file_system | 60 } // namespace sync_file_system |
| 61 | 61 |
| 62 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_EVENT_OBSERVER_H_ | 62 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_EVENT_OBSERVER_H_ |
| OLD | NEW |