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

Side by Side Diff: storage/browser/fileapi/file_system_quota_util.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_ 5 #ifndef STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_
6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_ 6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/files/file.h" 12 #include "base/files/file.h"
13 #include "storage/browser/fileapi/task_runner_bound_observer_list.h"
14 #include "storage/browser/storage_browser_export.h" 13 #include "storage/browser/storage_browser_export.h"
15 #include "storage/common/fileapi/file_system_types.h" 14 #include "storage/common/fileapi/file_system_types.h"
16 #include "url/gurl.h" 15 #include "url/gurl.h"
17 16
18 namespace base { 17 namespace base {
19 class SequencedTaskRunner; 18 class SequencedTaskRunner;
20 } 19 }
21 20
22 namespace storage { 21 namespace storage {
23 class QuotaManagerProxy; 22 class QuotaManagerProxy;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual int64 GetOriginUsageOnFileTaskRunner( 54 virtual int64 GetOriginUsageOnFileTaskRunner(
56 storage::FileSystemContext* file_system_context, 55 storage::FileSystemContext* file_system_context,
57 const GURL& origin_url, 56 const GURL& origin_url,
58 storage::FileSystemType type) = 0; 57 storage::FileSystemType type) = 0;
59 58
60 // Creates new reservation object for the origin and the type. 59 // Creates new reservation object for the origin and the type.
61 virtual scoped_refptr<QuotaReservation> 60 virtual scoped_refptr<QuotaReservation>
62 CreateQuotaReservationOnFileTaskRunner( 61 CreateQuotaReservationOnFileTaskRunner(
63 const GURL& origin_url, 62 const GURL& origin_url,
64 FileSystemType type) = 0; 63 FileSystemType type) = 0;
65
66 virtual void AddFileUpdateObserver(
67 FileSystemType type,
68 FileUpdateObserver* observer,
69 base::SequencedTaskRunner* task_runner) = 0;
70 virtual void AddFileChangeObserver(
71 FileSystemType type,
72 FileChangeObserver* observer,
73 base::SequencedTaskRunner* task_runner) = 0;
74 virtual void AddFileAccessObserver(
75 FileSystemType type,
76 FileAccessObserver* observer,
77 base::SequencedTaskRunner* task_runner) = 0;
78
79 // Returns the observer list for |type|, or returns NULL if any observers
80 // have not been registered on |type|.
81 virtual const UpdateObserverList* GetUpdateObservers(
82 FileSystemType type) const = 0;
83 virtual const ChangeObserverList* GetChangeObservers(
84 FileSystemType type) const = 0;
85 virtual const AccessObserverList* GetAccessObservers(
86 FileSystemType type) const = 0;
87 }; 64 };
88 65
89 } // namespace storage 66 } // namespace storage
90 67
91 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_ 68 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_
OLDNEW
« no previous file with comments | « storage/browser/fileapi/file_system_context.cc ('k') | storage/browser/fileapi/isolated_file_system_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698