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

Unified Diff: runtime/bin/file_system_watcher.h

Issue 98773002: Rewrite file-system-watcher to better handle the different system APIs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Android impl and doc fix. Created 7 years 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
« no previous file with comments | « runtime/bin/file_patch.dart ('k') | runtime/bin/file_system_watcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_system_watcher.h
diff --git a/runtime/bin/file_system_watcher.h b/runtime/bin/file_system_watcher.h
index 21c334f771f4b230ef35656e7bea510b93257b86..6a6164a087ba3dd667acbd0608d0e7f86546ac99 100644
--- a/runtime/bin/file_system_watcher.h
+++ b/runtime/bin/file_system_watcher.h
@@ -37,10 +37,15 @@ class FileSystemWatcher {
};
static bool IsSupported();
- static intptr_t WatchPath(const char* path, int events, bool recursive);
- static void UnwatchPath(intptr_t id);
- static intptr_t GetSocketId(intptr_t id);
- static Dart_Handle ReadEvents(intptr_t id);
+ static intptr_t Init();
+ static void Close(intptr_t id);
+ static intptr_t WatchPath(intptr_t id,
+ const char* path,
+ int events,
+ bool recursive);
+ static void UnwatchPath(intptr_t id, intptr_t path_id);
+ static intptr_t GetSocketId(intptr_t id, intptr_t path_id);
+ static Dart_Handle ReadEvents(intptr_t id, intptr_t path_id);
private:
DISALLOW_COPY_AND_ASSIGN(FileSystemWatcher);
« no previous file with comments | « runtime/bin/file_patch.dart ('k') | runtime/bin/file_system_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698