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

Unified Diff: storage/browser/fileapi/sandbox_file_system_backend_delegate.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 | « storage/browser/fileapi/sandbox_file_system_backend.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/fileapi/sandbox_file_system_backend_delegate.h
diff --git a/storage/browser/fileapi/sandbox_file_system_backend_delegate.h b/storage/browser/fileapi/sandbox_file_system_backend_delegate.h
index d93badae01fbf06c49103614dccbcfe13bd990e8..dfb5678a3fa4d8613c205cba8e2c3ef462024b33 100644
--- a/storage/browser/fileapi/sandbox_file_system_backend_delegate.h
+++ b/storage/browser/fileapi/sandbox_file_system_backend_delegate.h
@@ -20,6 +20,7 @@
#include "storage/browser/fileapi/file_system_backend.h"
#include "storage/browser/fileapi/file_system_options.h"
#include "storage/browser/fileapi/file_system_quota_util.h"
+#include "storage/browser/fileapi/task_runner_bound_observer_list.h"
#include "storage/browser/storage_browser_export.h"
namespace base {
@@ -146,24 +147,26 @@ class STORAGE_EXPORT SandboxFileSystemBackendDelegate
CreateQuotaReservationOnFileTaskRunner(
const GURL& origin_url,
FileSystemType type) OVERRIDE;
- virtual void AddFileUpdateObserver(
- FileSystemType type,
- FileUpdateObserver* observer,
- base::SequencedTaskRunner* task_runner) OVERRIDE;
- virtual void AddFileChangeObserver(
- FileSystemType type,
- FileChangeObserver* observer,
- base::SequencedTaskRunner* task_runner) OVERRIDE;
- virtual void AddFileAccessObserver(
- FileSystemType type,
- FileAccessObserver* observer,
- base::SequencedTaskRunner* task_runner) OVERRIDE;
+
+ // Adds an observer for the secified |type| of a file system, bound to
+ // |task_runner|.
+ virtual void AddFileUpdateObserver(FileSystemType type,
+ FileUpdateObserver* observer,
+ base::SequencedTaskRunner* task_runner);
+ virtual void AddFileChangeObserver(FileSystemType type,
+ FileChangeObserver* observer,
+ base::SequencedTaskRunner* task_runner);
+ virtual void AddFileAccessObserver(FileSystemType type,
+ FileAccessObserver* observer,
+ base::SequencedTaskRunner* task_runner);
+
+ // Returns observer lists for the specified |type| of a file system.
virtual const UpdateObserverList* GetUpdateObservers(
- FileSystemType type) const OVERRIDE;
+ FileSystemType type) const;
virtual const ChangeObserverList* GetChangeObservers(
- FileSystemType type) const OVERRIDE;
+ FileSystemType type) const;
virtual const AccessObserverList* GetAccessObservers(
- FileSystemType type) const OVERRIDE;
+ FileSystemType type) const;
// Registers quota observer for file updates on filesystem of |type|.
void RegisterQuotaUpdateObserver(FileSystemType type);
« no previous file with comments | « storage/browser/fileapi/sandbox_file_system_backend.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698