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

Unified Diff: chrome/common/extensions/api/sync_file_system.idl

Issue 11316133: Added implementation of SyncEventObserver to route events to Javascript Extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Kinuko review #2 (after little fixups) Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/sync_file_system.idl
diff --git a/chrome/common/extensions/api/sync_file_system.idl b/chrome/common/extensions/api/sync_file_system.idl
index 5971efe9dedaa2760ee32ba98bcfa63f03ff5e0d..d6487d87c90ae6378da01dbb2294a2e8a10b5bf0 100644
--- a/chrome/common/extensions/api/sync_file_system.idl
+++ b/chrome/common/extensions/api/sync_file_system.idl
@@ -14,6 +14,12 @@ namespace syncFileSystem {
DOMString description;
};
+ enum SyncOperationType {
+ FILE_ADDED,
+ FILE_UPDATED,
+ FILE_DELETED
kinuko 2012/11/28 11:06:40 I was looking at other idl files that use enum and
calvinlo 2012/11/28 12:26:34 Done.
+ };
+
enum SyncStateStatus {
// The sync service is being initialized (e.g. restoring data from the
// database, checking connectivity and authenticating to the service etc).
@@ -71,5 +77,10 @@ namespace syncFileSystem {
// sync backend. (E.g. the sync is temporarily disabled due to
// network or authentication error etc)
static void onSyncStateChanged(SyncState detail);
+
+ // Fired when a file has been updated by the background sync service.
+ // TODO(calvinlo): Convert |file_entry_path| from to Webkit FileEntry.
+ static void onFileSynced(DOMString file_entry_path,
+ SyncOperationType operation);
};
};

Powered by Google App Engine
This is Rietveld 408576698