| 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 | 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 | 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 | 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 | 8 // caching usage so that the same data can be available across different |
| 9 // clients. Read <a href="app_storage.html">Manage Data</a> for more on using | 9 // clients. Read <a href="app_storage.html">Manage Data</a> for more on using |
| 10 // this API. | 10 // this API. |
| 11 [use_movable_types=true] namespace syncFileSystem { | 11 namespace syncFileSystem { |
| 12 enum SyncAction { | 12 enum SyncAction { |
| 13 added, updated, deleted | 13 added, updated, deleted |
| 14 }; | 14 }; |
| 15 | 15 |
| 16 enum ServiceStatus { | 16 enum ServiceStatus { |
| 17 // The sync service is being initialized (e.g. restoring data from the | 17 // The sync service is being initialized (e.g. restoring data from the |
| 18 // database, checking connectivity and authenticating to the service etc). | 18 // database, checking connectivity and authenticating to the service etc). |
| 19 initializing, | 19 initializing, |
| 20 | 20 |
| 21 // The sync service is up and running. | 21 // The sync service is up and running. |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 // Fired when an error or other status change has happened in the | 190 // Fired when an error or other status change has happened in the |
| 191 // sync backend (for example, when the sync is temporarily disabled due to | 191 // sync backend (for example, when the sync is temporarily disabled due to |
| 192 // network or authentication error). | 192 // network or authentication error). |
| 193 static void onServiceStatusChanged(ServiceInfo detail); | 193 static void onServiceStatusChanged(ServiceInfo detail); |
| 194 | 194 |
| 195 // Fired when a file has been updated by the background sync service. | 195 // Fired when a file has been updated by the background sync service. |
| 196 static void onFileStatusChanged(FileInfo detail); | 196 static void onFileStatusChanged(FileInfo detail); |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 }; | 199 }; |
| OLD | NEW |