Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: chrome/common/extensions/api/sync_file_system.idl

Issue 22639003: Update sync_file_system.idl to use a regular array instead of an EntryArray (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/renderer/resources/extensions/sync_file_system_custom_bindings.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // Returns the $ref:FileStatus for the given <code>fileEntry</code>. 163 // Returns the $ref:FileStatus for the given <code>fileEntry</code>.
164 // The status value can be <code>'synced'</code>, 164 // The status value can be <code>'synced'</code>,
165 // <code>'pending'</code> or <code>'conflicting'</code>. 165 // <code>'pending'</code> or <code>'conflicting'</code>.
166 // Note that <code>'conflicting'</code> state only happens when 166 // Note that <code>'conflicting'</code> state only happens when
167 // the service's conflict resolution policy is set to <code>'manual'</code>. 167 // the service's conflict resolution policy is set to <code>'manual'</code>.
168 static void getFileStatus([instanceOf=FileEntry] object fileEntry, 168 static void getFileStatus([instanceOf=FileEntry] object fileEntry,
169 GetFileStatusCallback callback); 169 GetFileStatusCallback callback);
170 170
171 // Returns each $ref:FileStatus for the given <code>fileEntry</code> array. 171 // Returns each $ref:FileStatus for the given <code>fileEntry</code> array.
172 // Typically called with the result from dirReader.readEntries(). 172 // Typically called with the result from dirReader.readEntries().
173 static void getFileStatuses([instanceOf=EntryArray] object fileEntries, 173 static void getFileStatuses(object[] fileEntries,
do-not-use 2013/08/08 15:49:18 Yes, the singular version above (getFileStatus) is
174 GetFileStatusesCallback callback); 174 GetFileStatusesCallback callback);
175 }; 175 };
176 176
177 interface Events { 177 interface Events {
178 // 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
179 // 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
180 // network or authentication error). 180 // network or authentication error).
181 static void onServiceStatusChanged(ServiceInfo detail); 181 static void onServiceStatusChanged(ServiceInfo detail);
182 182
183 // 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.
184 static void onFileStatusChanged(FileInfo detail); 184 static void onFileStatusChanged(FileInfo detail);
185 }; 185 };
186 186
187 }; 187 };
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/resources/extensions/sync_file_system_custom_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698