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

Side by Side Diff: webkit/browser/fileapi/sandbox_file_system_backend_delegate.h

Issue 61593002: Quota: Implement QuotaBackendImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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 WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_
6 #define WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_ 6 #define WEBKIT_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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 180
181 const FileSystemOptions& file_system_options() const { 181 const FileSystemOptions& file_system_options() const {
182 return file_system_options_; 182 return file_system_options_;
183 } 183 }
184 184
185 FileSystemFileUtil* sync_file_util(); 185 FileSystemFileUtil* sync_file_util();
186 186
187 private: 187 private:
188 friend class SandboxQuotaObserver; 188 friend class SandboxQuotaObserver;
189 friend class SandboxFileSystemTestHelper; 189 friend class SandboxFileSystemTestHelper;
190 friend class QuotaBackendImpl;
190 FRIEND_TEST_ALL_PREFIXES(SandboxFileSystemBackendDelegateTest, IsAccessValid); 191 FRIEND_TEST_ALL_PREFIXES(SandboxFileSystemBackendDelegateTest, IsAccessValid);
191 192
192 // Performs API-specific validity checks on the given path |url|. 193 // Performs API-specific validity checks on the given path |url|.
193 // Returns true if access to |url| is valid in this filesystem. 194 // Returns true if access to |url| is valid in this filesystem.
194 bool IsAccessValid(const FileSystemURL& url) const; 195 bool IsAccessValid(const FileSystemURL& url) const;
195 196
196 // Returns true if the given |url|'s scheme is allowed to access 197 // Returns true if the given |url|'s scheme is allowed to access
197 // filesystem. 198 // filesystem.
198 bool IsAllowedScheme(const GURL& url) const; 199 bool IsAllowedScheme(const GURL& url) const;
199 200
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 base::Time next_release_time_for_open_filesystem_stat_; 241 base::Time next_release_time_for_open_filesystem_stat_;
241 242
242 base::WeakPtrFactory<SandboxFileSystemBackendDelegate> weak_factory_; 243 base::WeakPtrFactory<SandboxFileSystemBackendDelegate> weak_factory_;
243 244
244 DISALLOW_COPY_AND_ASSIGN(SandboxFileSystemBackendDelegate); 245 DISALLOW_COPY_AND_ASSIGN(SandboxFileSystemBackendDelegate);
245 }; 246 };
246 247
247 } // namespace fileapi 248 } // namespace fileapi
248 249
249 #endif // WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_ 250 #endif // WEBKIT_BROWSER_FILEAPI_SANDBOX_FILE_SYSTEM_BACKEND_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/quota/quota_reservation_manager_unittest.cc ('k') | webkit/storage_browser.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698