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

Unified Diff: chrome/browser/chromeos/file_system_provider/fileapi/watcher_manager.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
Index: chrome/browser/chromeos/file_system_provider/fileapi/watcher_manager.h
diff --git a/chrome/browser/chromeos/file_system_provider/fileapi/watcher_manager.h b/chrome/browser/chromeos/file_system_provider/fileapi/watcher_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..e63fcaac5b434205ec7d397ee3a096d5fd01ef00
--- /dev/null
+++ b/chrome/browser/chromeos/file_system_provider/fileapi/watcher_manager.h
@@ -0,0 +1,37 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_WATCHER_MANAGER_H_
+#define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_WATCHER_MANAGER_H_
+
+#include "storage/browser/fileapi/watcher_manager.h"
+
+namespace storage {
+class FileSystemURL;
+} // namespace storage
+
+namespace chromeos {
+namespace file_system_provider {
+
+// Exposes entry watching capability to fileapi.
+class WatcherManager : public storage::WatcherManager {
+ public:
+ WatcherManager();
+ virtual ~WatcherManager();
+
+ // storage::WatcherManager overrides.
+ virtual void AddWatcher(
+ const storage::FileSystemURL& url,
+ bool recursive,
+ const StatusCallback& callback,
+ const NotificationCallback& notification_callback) override;
+ virtual void RemoveWatcher(const storage::FileSystemURL& url,
+ bool recursive,
+ const StatusCallback& callback) override;
+};
+
+} // namespace file_system_provider
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_WATCHER_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698