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

Side by Side Diff: webkit/fileapi/file_system_context.h

Issue 10781014: Isolated FS for media devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 8 years, 5 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 | Annotate | Revision Log
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 WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 base::SequencedTaskRunner* file_task_runner() const { 76 base::SequencedTaskRunner* file_task_runner() const {
77 return file_task_runner_.get(); 77 return file_task_runner_.get();
78 } 78 }
79 79
80 // Returns a quota util for a given filesystem type. This may 80 // Returns a quota util for a given filesystem type. This may
81 // return NULL if the type does not support the usage tracking or 81 // return NULL if the type does not support the usage tracking or
82 // it is not a quota-managed storage. 82 // it is not a quota-managed storage.
83 FileSystemQuotaUtil* GetQuotaUtil(FileSystemType type) const; 83 FileSystemQuotaUtil* GetQuotaUtil(FileSystemType type) const;
84 84
85 // Returns the appropriate FileUtil instance for the given |type|. 85 // Returns the appropriate FileUtil instance for the given |url|.
86 // This may return NULL if it is given an invalid or unsupported filesystem 86 // This may return NULL if it is given an invalid or unsupported filesystem.
87 // type. 87 FileSystemFileUtil* GetFileUtil(const FileSystemURL& url ) const;
88 FileSystemFileUtil* GetFileUtil(FileSystemType type) const;
89 88
90 // Returns the mount point provider instance for the given |type|. 89 // Returns the mount point provider instance for the given |type|.
91 // This may return NULL if it is given an invalid or unsupported filesystem 90 // This may return NULL if it is given an invalid or unsupported filesystem
92 // type. 91 // type.
93 FileSystemMountPointProvider* GetMountPointProvider( 92 FileSystemMountPointProvider* GetMountPointProvider(
94 FileSystemType type) const; 93 FileSystemType type) const;
95 94
96 // Returns a FileSystemMountPointProvider instance for sandboxed filesystem 95 // Returns a FileSystemMountPointProvider instance for sandboxed filesystem
97 // types (e.g. TEMPORARY or PERSISTENT). This is equivalent to calling 96 // types (e.g. TEMPORARY or PERSISTENT). This is equivalent to calling
98 // GetMountPointProvider(kFileSystemType{Temporary, Persistent}). 97 // GetMountPointProvider(kFileSystemType{Temporary, Persistent}).
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 168
170 struct DefaultContextDeleter { 169 struct DefaultContextDeleter {
171 static void Destruct(const FileSystemContext* context) { 170 static void Destruct(const FileSystemContext* context) {
172 context->DeleteOnCorrectThread(); 171 context->DeleteOnCorrectThread();
173 } 172 }
174 }; 173 };
175 174
176 } // namespace fileapi 175 } // namespace fileapi
177 176
178 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 177 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698