| 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 // Use the <code>chrome.syncFileSystem</code> API to save and synchronize data |
| 6 // on Google Drive. This API is NOT for accessing arbitrary user docs stored in |
| 7 // Google Drive. It provides app-specific syncable storage for offline and |
| 8 // caching usage so that the same data can be available across different |
| 9 // clients. Read |
| 10 // <a href="http://developer.chrome.com/trunk/apps/app_storage.html">Manage |
| 11 // Data</a> for more on using this API. |
| 5 namespace syncFileSystem { | 12 namespace syncFileSystem { |
| 6 enum SyncAction { | 13 enum SyncAction { |
| 7 added, updated, deleted | 14 added, updated, deleted |
| 8 }; | 15 }; |
| 9 | 16 |
| 10 enum ServiceStatus { | 17 enum ServiceStatus { |
| 11 // The sync service is being initialized (e.g. restoring data from the | 18 // The sync service is being initialized (e.g. restoring data from the |
| 12 // database, checking connectivity and authenticating to the service etc). | 19 // database, checking connectivity and authenticating to the service etc). |
| 13 initializing, | 20 initializing, |
| 14 | 21 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 // Fired when an error or other status change has happened in the | 179 // Fired when an error or other status change has happened in the |
| 173 // sync backend (for example, when the sync is temporarily disabled due to | 180 // sync backend (for example, when the sync is temporarily disabled due to |
| 174 // network or authentication error). | 181 // network or authentication error). |
| 175 static void onServiceStatusChanged(ServiceInfo detail); | 182 static void onServiceStatusChanged(ServiceInfo detail); |
| 176 | 183 |
| 177 // Fired when a file has been updated by the background sync service. | 184 // Fired when a file has been updated by the background sync service. |
| 178 static void onFileStatusChanged(FileInfo detail); | 185 static void onFileStatusChanged(FileInfo detail); |
| 179 }; | 186 }; |
| 180 | 187 |
| 181 }; | 188 }; |
| OLD | NEW |