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

Unified Diff: webkit/browser/fileapi/watcher_manager.h

Issue 539143002: Migrate webkit/browser/ to storage/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android build Created 6 years, 3 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 | « webkit/browser/fileapi/transient_file_util.cc ('k') | webkit/browser/quota/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/fileapi/watcher_manager.h
diff --git a/webkit/browser/fileapi/watcher_manager.h b/webkit/browser/fileapi/watcher_manager.h
index 83a64f691af2ad5a4889ef1505e1f41db5410c21..0b51e73eb65b8e2aaa3b2f5b735044745274ba85 100644
--- a/webkit/browser/fileapi/watcher_manager.h
+++ b/webkit/browser/fileapi/watcher_manager.h
@@ -2,66 +2,4 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WEBKIT_BROWSER_FILEAPI_WATCHER_MANAGER_H_
-#define WEBKIT_BROWSER_FILEAPI_WATCHER_MANAGER_H_
-
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/callback_forward.h"
-#include "base/files/file.h"
-
-namespace base {
-class Time;
-}
-
-namespace storage {
-
-class FileSystemOperationContext;
-class FileSystemURL;
-
-// An interface for providing entry observing capability for file system
-// backends.
-//
-// It is NOT valid to give null callback to this class, and implementors
-// can assume that they don't get any null callbacks.
-class WatcherManager {
- public:
- typedef base::Callback<void(base::File::Error result)> StatusCallback;
-
- // Observes watched entries.
- class Observer {
- public:
- Observer() {}
- virtual ~Observer() {}
-
- // Notifies about an entry represented by |url| being changed.
- virtual void OnEntryChanged(const FileSystemURL& url) = 0;
-
- // Notifies about an entry represented by |url| being removed.
- virtual void OnEntryRemoved(const FileSystemURL& url) = 0;
- };
-
- virtual ~WatcherManager() {}
-
- virtual void AddObserver(Observer* observer) = 0;
- virtual void RemoveObserver(Observer* observer) = 0;
- virtual bool HasObserver(Observer* observer) const = 0;
-
- // Observes a directory entry. If the |recursive| mode is not supported then
- // FILE_ERROR_INVALID_OPERATION must be returned as an error. If the |url| is
- // already watched, or setting up the watcher fails, then |callback|
- // must be called with a specific error code. Otherwise |callback| must be
- // called with the FILE_OK error code.
- virtual void WatchDirectory(const FileSystemURL& url,
- bool recursive,
- const StatusCallback& callback) = 0;
-
- // Stops observing an entry represented by |url|.
- virtual void UnwatchEntry(const FileSystemURL& url,
- const StatusCallback& callback) = 0;
-};
-
-} // namespace storage
-
-#endif // WEBKIT_BROWSER_FILEAPI_WATCHER_MANAGER_H_
+#include "storage/browser/fileapi/watcher_manager.h"
« no previous file with comments | « webkit/browser/fileapi/transient_file_util.cc ('k') | webkit/browser/quota/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698