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

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

Issue 18418009: FileAPI: Add FileObserver related interfaces into FileSystemQuotaUtil (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 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 | « no previous file | webkit/browser/fileapi/sandbox_file_system_backend.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/fileapi/file_system_quota_util.h
diff --git a/webkit/browser/fileapi/file_system_quota_util.h b/webkit/browser/fileapi/file_system_quota_util.h
index b7bf5f41efda67f646bcd505f83e4302b724c996..be98936c2f5ba0f3896f6748e16fcf6ed8ae815e 100644
--- a/webkit/browser/fileapi/file_system_quota_util.h
+++ b/webkit/browser/fileapi/file_system_quota_util.h
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "base/platform_file.h"
#include "url/gurl.h"
+#include "webkit/browser/fileapi/task_runner_bound_observer_list.h"
#include "webkit/browser/webkit_storage_browser_export.h"
#include "webkit/common/fileapi/file_system_types.h"
@@ -59,6 +60,25 @@ class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemQuotaUtil {
fileapi::FileSystemType type) = 0;
virtual void StickyInvalidateUsageCache(const GURL& origin,
fileapi::FileSystemType type) = 0;
+
+ virtual void AddFileUpdateObserver(
+ FileSystemType type,
+ FileUpdateObserver* observer,
+ base::SequencedTaskRunner* task_runner) = 0;
+ virtual void AddFileChangeObserver(
+ FileSystemType type,
+ FileChangeObserver* observer,
+ base::SequencedTaskRunner* task_runner) = 0;
+ virtual void AddFileAccessObserver(
+ FileSystemType type,
+ FileAccessObserver* observer,
+ base::SequencedTaskRunner* task_runner) = 0;
+ virtual const UpdateObserverList* GetUpdateObservers(
+ FileSystemType type) const = 0;
+ virtual const ChangeObserverList* GetChangeObservers(
+ FileSystemType type) const = 0;
+ virtual const AccessObserverList* GetAccessObservers(
+ FileSystemType type) const = 0;
};
} // namespace fileapi
« no previous file with comments | « no previous file | webkit/browser/fileapi/sandbox_file_system_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698