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 "webkit/fileapi/syncable/sync_operation_type.h" | 10 #include "webkit/fileapi/syncable/sync_operation_type.h" |
11 | 11 |
12 class GURL; | |
13 | |
12 namespace fileapi { | 14 namespace fileapi { |
13 class FileSystemURL; | 15 class FileSystemURL; |
14 } | 16 } |
15 | 17 |
16 namespace sync_file_system { | 18 namespace sync_file_system { |
17 | 19 |
18 class SyncEventObserver { | 20 class SyncEventObserver { |
19 public: | 21 public: |
20 typedef fileapi::SyncOperationType SyncOperationType; | 22 typedef fileapi::SyncOperationType SyncOperationType; |
21 | 23 |
(...skipping 20 matching lines...) Expand all Loading... | |
42 }; | 44 }; |
43 | 45 |
44 // Reports there was a state change in the sync file system backend. | 46 // Reports there was a state change in the sync file system backend. |
45 // If |app_origin| is empty, then broadcast to all registered apps. | 47 // If |app_origin| is empty, then broadcast to all registered apps. |
46 virtual void OnSyncStateUpdated(const GURL& app_origin, | 48 virtual void OnSyncStateUpdated(const GURL& app_origin, |
47 SyncServiceState state, | 49 SyncServiceState state, |
48 const std::string& description) = 0; | 50 const std::string& description) = 0; |
49 | 51 |
50 // Reports the file |url| was updated for |operation| | 52 // Reports the file |url| was updated for |operation| |
51 // by the sync file system backend. | 53 // by the sync file system backend. |
52 virtual void OnFileSynced(fileapi::SyncStatusCode status, | 54 virtual void OnFileSynced(fileapi::SyncOperationType operation, |
53 fileapi::SyncOperationType operation, | |
54 const fileapi::FileSystemURL& url) = 0; | 55 const fileapi::FileSystemURL& url) = 0; |
kinuko
2012/11/28 11:06:40
When you rebase the code you'll see the new code,
calvinlo
2012/11/28 12:26:34
Thanks for the tip. Rebased and updated.
| |
55 | |
56 private: | |
57 DISALLOW_COPY_AND_ASSIGN(SyncEventObserver); | |
58 }; | 56 }; |
59 | 57 |
60 } // namespace sync_file_system | 58 } // namespace sync_file_system |
61 | 59 |
62 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_EVENT_OBSERVER_H_ | 60 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_EVENT_OBSERVER_H_ |
OLD | NEW |