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

Unified Diff: chrome/browser/chromeos/file_system_provider/watcher.h

Issue 689603002: [fsp] Implement storage::WatcherManager for FSP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/file_system_provider/service.cc ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/file_system_provider/watcher.h
diff --git a/chrome/browser/chromeos/file_system_provider/watcher.h b/chrome/browser/chromeos/file_system_provider/watcher.h
index e073788bba2acce84d81dbbfb5adea7843d1be51..2964c97cad5b2e6f7b42bb4044b3d26325e2c1f2 100644
--- a/chrome/browser/chromeos/file_system_provider/watcher.h
+++ b/chrome/browser/chromeos/file_system_provider/watcher.h
@@ -9,7 +9,9 @@
#include <set>
#include <string>
+#include "base/callback.h"
#include "base/files/file_path.h"
+#include "storage/browser/fileapi/watcher_manager.h"
#include "url/gurl.h"
namespace chromeos {
@@ -49,6 +51,12 @@ struct Subscriber {
// Whether the subscriber should be restored after shutdown or not.
bool persistent;
+
+ // Callback to be called for each watcher notification. It's optional, but
+ // not allowed for persistent watchers. In case of persistent subscribers,
+ // the notification should be handled using observers, as the callback can't
+ // be restored after shutdown.
+ storage::WatcherManager::NotificationCallback notification_callback;
};
// Represents a watcher on a file system.
« no previous file with comments | « chrome/browser/chromeos/file_system_provider/service.cc ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698