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 | 9 // clients. Read <a href="app_storage.html">Manage Data</a> for more on using |
10 // <a href="http://developer.chrome.com/trunk/apps/app_storage.html">Manage | 10 // this API. |
11 // Data</a> for more on using this API. | |
12 namespace syncFileSystem { | 11 namespace syncFileSystem { |
13 enum SyncAction { | 12 enum SyncAction { |
14 added, updated, deleted | 13 added, updated, deleted |
15 }; | 14 }; |
16 | 15 |
17 enum ServiceStatus { | 16 enum ServiceStatus { |
18 // 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 |
19 // database, checking connectivity and authenticating to the service etc). | 18 // database, checking connectivity and authenticating to the service etc). |
20 initializing, | 19 initializing, |
21 | 20 |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // Fired when an error or other status change has happened in the | 178 // Fired when an error or other status change has happened in the |
180 // sync backend (for example, when the sync is temporarily disabled due to | 179 // sync backend (for example, when the sync is temporarily disabled due to |
181 // network or authentication error). | 180 // network or authentication error). |
182 static void onServiceStatusChanged(ServiceInfo detail); | 181 static void onServiceStatusChanged(ServiceInfo detail); |
183 | 182 |
184 // Fired when a file has been updated by the background sync service. | 183 // Fired when a file has been updated by the background sync service. |
185 static void onFileStatusChanged(FileInfo detail); | 184 static void onFileStatusChanged(FileInfo detail); |
186 }; | 185 }; |
187 | 186 |
188 }; | 187 }; |
OLD | NEW |