OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_ | 5 #ifndef STORAGE_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_ |
6 #define STORAGE_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_ | 6 #define STORAGE_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 const FileSystemURL& url, | 124 const FileSystemURL& url, |
125 int64 offset, | 125 int64 offset, |
126 FileSystemContext* context, | 126 FileSystemContext* context, |
127 FileSystemType type) const; | 127 FileSystemType type) const; |
128 | 128 |
129 // FileSystemQuotaUtil overrides. | 129 // FileSystemQuotaUtil overrides. |
130 virtual base::File::Error DeleteOriginDataOnFileTaskRunner( | 130 virtual base::File::Error DeleteOriginDataOnFileTaskRunner( |
131 FileSystemContext* context, | 131 FileSystemContext* context, |
132 storage::QuotaManagerProxy* proxy, | 132 storage::QuotaManagerProxy* proxy, |
133 const GURL& origin_url, | 133 const GURL& origin_url, |
134 FileSystemType type) OVERRIDE; | 134 FileSystemType type) override; |
135 virtual void GetOriginsForTypeOnFileTaskRunner( | 135 virtual void GetOriginsForTypeOnFileTaskRunner( |
136 FileSystemType type, | 136 FileSystemType type, |
137 std::set<GURL>* origins) OVERRIDE; | 137 std::set<GURL>* origins) override; |
138 virtual void GetOriginsForHostOnFileTaskRunner( | 138 virtual void GetOriginsForHostOnFileTaskRunner( |
139 FileSystemType type, | 139 FileSystemType type, |
140 const std::string& host, | 140 const std::string& host, |
141 std::set<GURL>* origins) OVERRIDE; | 141 std::set<GURL>* origins) override; |
142 virtual int64 GetOriginUsageOnFileTaskRunner( | 142 virtual int64 GetOriginUsageOnFileTaskRunner( |
143 FileSystemContext* context, | 143 FileSystemContext* context, |
144 const GURL& origin_url, | 144 const GURL& origin_url, |
145 FileSystemType type) OVERRIDE; | 145 FileSystemType type) override; |
146 virtual scoped_refptr<QuotaReservation> | 146 virtual scoped_refptr<QuotaReservation> |
147 CreateQuotaReservationOnFileTaskRunner( | 147 CreateQuotaReservationOnFileTaskRunner( |
148 const GURL& origin_url, | 148 const GURL& origin_url, |
149 FileSystemType type) OVERRIDE; | 149 FileSystemType type) override; |
150 | 150 |
151 // Adds an observer for the secified |type| of a file system, bound to | 151 // Adds an observer for the secified |type| of a file system, bound to |
152 // |task_runner|. | 152 // |task_runner|. |
153 virtual void AddFileUpdateObserver(FileSystemType type, | 153 virtual void AddFileUpdateObserver(FileSystemType type, |
154 FileUpdateObserver* observer, | 154 FileUpdateObserver* observer, |
155 base::SequencedTaskRunner* task_runner); | 155 base::SequencedTaskRunner* task_runner); |
156 virtual void AddFileChangeObserver(FileSystemType type, | 156 virtual void AddFileChangeObserver(FileSystemType type, |
157 FileChangeObserver* observer, | 157 FileChangeObserver* observer, |
158 base::SequencedTaskRunner* task_runner); | 158 base::SequencedTaskRunner* task_runner); |
159 virtual void AddFileAccessObserver(FileSystemType type, | 159 virtual void AddFileAccessObserver(FileSystemType type, |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 base::Time next_release_time_for_open_filesystem_stat_; | 254 base::Time next_release_time_for_open_filesystem_stat_; |
255 | 255 |
256 base::WeakPtrFactory<SandboxFileSystemBackendDelegate> weak_factory_; | 256 base::WeakPtrFactory<SandboxFileSystemBackendDelegate> weak_factory_; |
257 | 257 |
258 DISALLOW_COPY_AND_ASSIGN(SandboxFileSystemBackendDelegate); | 258 DISALLOW_COPY_AND_ASSIGN(SandboxFileSystemBackendDelegate); |
259 }; | 259 }; |
260 | 260 |
261 } // namespace storage | 261 } // namespace storage |
262 | 262 |
263 #endif // STORAGE_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_ | 263 #endif // STORAGE_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_ |
OLD | NEW |