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

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

Issue 452043003: [ew] Add basic classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing files. Created 6 years, 4 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_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_
6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 class FileSystemFileUtil; 58 class FileSystemFileUtil;
59 class FileSystemOperation; 59 class FileSystemOperation;
60 class FileSystemOperationRunner; 60 class FileSystemOperationRunner;
61 class FileSystemOptions; 61 class FileSystemOptions;
62 class FileSystemQuotaUtil; 62 class FileSystemQuotaUtil;
63 class FileSystemURL; 63 class FileSystemURL;
64 class IsolatedFileSystemBackend; 64 class IsolatedFileSystemBackend;
65 class MountPoints; 65 class MountPoints;
66 class QuotaReservation; 66 class QuotaReservation;
67 class SandboxFileSystemBackend; 67 class SandboxFileSystemBackend;
68 class WatchManager;
68 69
69 struct DefaultContextDeleter; 70 struct DefaultContextDeleter;
70 struct FileSystemInfo; 71 struct FileSystemInfo;
71 72
72 // An auto mount handler will attempt to mount the file system requested in 73 // An auto mount handler will attempt to mount the file system requested in
73 // |url_request|. If the URL is for this auto mount handler, it returns true 74 // |url_request|. If the URL is for this auto mount handler, it returns true
74 // and calls |callback| when the attempt is complete. If the auto mounter 75 // and calls |callback| when the attempt is complete. If the auto mounter
75 // does not recognize the URL, it returns false and does not call |callback|. 76 // does not recognize the URL, it returns false and does not call |callback|.
76 // Called on the IO thread. 77 // Called on the IO thread.
77 typedef base::Callback<bool( 78 typedef base::Callback<bool(
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // then no validator is required. 157 // then no validator is required.
157 CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory( 158 CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory(
158 FileSystemType type, base::File::Error* error_code) const; 159 FileSystemType type, base::File::Error* error_code) const;
159 160
160 // Returns the file system backend instance for the given |type|. 161 // Returns the file system backend instance for the given |type|.
161 // This may return NULL if it is given an invalid or unsupported filesystem 162 // This may return NULL if it is given an invalid or unsupported filesystem
162 // type. 163 // type.
163 FileSystemBackend* GetFileSystemBackend( 164 FileSystemBackend* GetFileSystemBackend(
164 FileSystemType type) const; 165 FileSystemType type) const;
165 166
167 // Returns the watcher manager for the given |type|.
168 // This may return NULL if the type does not support watching.
169 WatcherManager* GetWatcherManager(FileSystemType type) const;
170
166 // Returns true for sandboxed filesystems. Currently this does 171 // Returns true for sandboxed filesystems. Currently this does
167 // the same as GetQuotaUtil(type) != NULL. (In an assumption that 172 // the same as GetQuotaUtil(type) != NULL. (In an assumption that
168 // all sandboxed filesystems must cooperate with QuotaManager so that 173 // all sandboxed filesystems must cooperate with QuotaManager so that
169 // they can get deleted) 174 // they can get deleted)
170 bool IsSandboxFileSystem(FileSystemType type) const; 175 bool IsSandboxFileSystem(FileSystemType type) const;
171 176
172 // Returns observers for the given filesystem type. 177 // Returns observers for the given filesystem type.
173 const UpdateObserverList* GetUpdateObservers(FileSystemType type) const; 178 const UpdateObserverList* GetUpdateObservers(FileSystemType type) const;
174 const AccessObserverList* GetAccessObservers(FileSystemType type) const; 179 const AccessObserverList* GetAccessObservers(FileSystemType type) const;
175 180
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 418
414 struct DefaultContextDeleter { 419 struct DefaultContextDeleter {
415 static void Destruct(const FileSystemContext* context) { 420 static void Destruct(const FileSystemContext* context) {
416 context->DeleteOnCorrectThread(); 421 context->DeleteOnCorrectThread();
417 } 422 }
418 }; 423 };
419 424
420 } // namespace storage 425 } // namespace storage
421 426
422 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 427 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698