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-speicif 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. |
| 12 |
| 13 [availability=dev] |
5 namespace syncFileSystem { | 14 namespace syncFileSystem { |
6 enum SyncAction { | 15 enum SyncAction { |
7 added, updated, deleted | 16 added, updated, deleted |
8 }; | 17 }; |
9 | 18 |
10 enum ServiceStatus { | 19 enum ServiceStatus { |
11 // The sync service is being initialized (e.g. restoring data from the | 20 // The sync service is being initialized (e.g. restoring data from the |
12 // database, checking connectivity and authenticating to the service etc). | 21 // database, checking connectivity and authenticating to the service etc). |
13 initializing, | 22 initializing, |
14 | 23 |
(...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 | 181 // 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 | 182 // sync backend (for example, when the sync is temporarily disabled due to |
174 // network or authentication error). | 183 // network or authentication error). |
175 static void onServiceStatusChanged(ServiceInfo detail); | 184 static void onServiceStatusChanged(ServiceInfo detail); |
176 | 185 |
177 // Fired when a file has been updated by the background sync service. | 186 // Fired when a file has been updated by the background sync service. |
178 static void onFileStatusChanged(FileInfo detail); | 187 static void onFileStatusChanged(FileInfo detail); |
179 }; | 188 }; |
180 | 189 |
181 }; | 190 }; |
OLD | NEW |