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

Unified Diff: storage/browser/fileapi/file_system_backend.h

Issue 549413003: [ew] Move operation observers from QuotaUtil to FileSystemBackend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. 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 | « content/public/test/test_file_system_backend.cc ('k') | storage/browser/fileapi/file_system_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/fileapi/file_system_backend.h
diff --git a/storage/browser/fileapi/file_system_backend.h b/storage/browser/fileapi/file_system_backend.h
index 8f455d93235416ab36a99e21c58823ccd98d3545..d036d28481cabb5cb96a6296a3c7be7ff7dbad49 100644
--- a/storage/browser/fileapi/file_system_backend.h
+++ b/storage/browser/fileapi/file_system_backend.h
@@ -14,6 +14,7 @@
#include "base/memory/scoped_ptr.h"
#include "storage/browser/fileapi/file_permission_policy.h"
#include "storage/browser/fileapi/open_file_system_mode.h"
+#include "storage/browser/fileapi/task_runner_bound_observer_list.h"
#include "storage/browser/storage_browser_export.h"
#include "storage/common/fileapi/file_system_types.h"
@@ -129,6 +130,21 @@ class STORAGE_EXPORT FileSystemBackend {
// Returns the specialized FileSystemQuotaUtil for this backend.
// This could return NULL if this backend does not support quota.
virtual FileSystemQuotaUtil* GetQuotaUtil() = 0;
+
+ // Returns the update observer list for |type|. It may return NULL when no
+ // observers are added.
+ virtual const UpdateObserverList* GetUpdateObservers(
+ FileSystemType type) const = 0;
+
+ // Returns the change observer list for |type|. It may return NULL when no
+ // observers are added.
+ virtual const ChangeObserverList* GetChangeObservers(
+ FileSystemType type) const = 0;
+
+ // Returns the access observer list for |type|. It may return NULL when no
+ // observers are added.
+ virtual const AccessObserverList* GetAccessObservers(
+ FileSystemType type) const = 0;
};
// An interface to control external file system access permissions.
« no previous file with comments | « content/public/test/test_file_system_backend.cc ('k') | storage/browser/fileapi/file_system_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698