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

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

Issue 10781014: Isolated FS for media devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments 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_ISOLATED_MOUNT_POINT_PROVIDER_H_ 5 #ifndef WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_
6 #define WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ 6 #define WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_
7 7
8 #include <vector>
9
10 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
11 #include "webkit/fileapi/file_system_mount_point_provider.h" 9 #include "webkit/fileapi/file_system_mount_point_provider.h"
12 10
13 namespace fileapi { 11 namespace fileapi {
14 12
15 class IsolatedContext; 13 class IsolatedContext;
16 class IsolatedFileUtil; 14 class IsolatedFileUtil;
15 class MediaFileUtil;
17 16
18 class IsolatedMountPointProvider : public FileSystemMountPointProvider { 17 class IsolatedMountPointProvider : public FileSystemMountPointProvider {
19 public: 18 public:
20 typedef FileSystemMountPointProvider::ValidateFileSystemCallback 19 typedef FileSystemMountPointProvider::ValidateFileSystemCallback
21 ValidateFileSystemCallback; 20 ValidateFileSystemCallback;
22 21
23 IsolatedMountPointProvider(); 22 IsolatedMountPointProvider();
24 virtual ~IsolatedMountPointProvider(); 23 virtual ~IsolatedMountPointProvider();
25 24
26 // FileSystemMountPointProvider implementation. 25 // FileSystemMountPointProvider implementation.
27 virtual void ValidateFileSystemRoot( 26 virtual void ValidateFileSystemRoot(
28 const GURL& origin_url, 27 const GURL& origin_url,
29 FileSystemType type, 28 FileSystemType type,
30 bool create, 29 bool create,
31 const ValidateFileSystemCallback& callback) OVERRIDE; 30 const ValidateFileSystemCallback& callback) OVERRIDE;
32 virtual FilePath GetFileSystemRootPathOnFileThread( 31 virtual FilePath GetFileSystemRootPathOnFileThread(
33 const GURL& origin_url, 32 const GURL& origin_url,
34 FileSystemType type, 33 FileSystemType type,
35 const FilePath& virtual_path, 34 const FilePath& virtual_path,
36 bool create) OVERRIDE; 35 bool create) OVERRIDE;
37 virtual bool IsAccessAllowed(const GURL& origin_url, 36 virtual bool IsAccessAllowed(const GURL& origin_url,
38 FileSystemType type, 37 FileSystemType type,
39 const FilePath& virtual_path) OVERRIDE; 38 const FilePath& virtual_path) OVERRIDE;
40 virtual bool IsRestrictedFileName(const FilePath& filename) const OVERRIDE; 39 virtual bool IsRestrictedFileName(const FilePath& filename) const OVERRIDE;
41 virtual FileSystemFileUtil* GetFileUtil() OVERRIDE; 40 virtual FileSystemFileUtil* GetFileUtil(const FileSystemURL& url) OVERRIDE;
42 virtual FilePath GetPathForPermissionsCheck(const FilePath& virtual_path) 41 virtual FilePath GetPathForPermissionsCheck(const FilePath& virtual_path)
43 const OVERRIDE; 42 const OVERRIDE;
44 virtual FileSystemOperationInterface* CreateFileSystemOperation( 43 virtual FileSystemOperationInterface* CreateFileSystemOperation(
45 const FileSystemURL& url, 44 const FileSystemURL& url,
46 FileSystemContext* context) const OVERRIDE; 45 FileSystemContext* context) const OVERRIDE;
47 virtual webkit_blob::FileStreamReader* CreateFileStreamReader( 46 virtual webkit_blob::FileStreamReader* CreateFileStreamReader(
48 const FileSystemURL& url, 47 const FileSystemURL& url,
49 int64 offset, 48 int64 offset,
50 FileSystemContext* context) const OVERRIDE; 49 FileSystemContext* context) const OVERRIDE;
51 virtual FileStreamWriter* CreateFileStreamWriter( 50 virtual FileStreamWriter* CreateFileStreamWriter(
52 const FileSystemURL& url, 51 const FileSystemURL& url,
53 int64 offset, 52 int64 offset,
54 FileSystemContext* context) const OVERRIDE; 53 FileSystemContext* context) const OVERRIDE;
55 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; 54 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
56 55
57 private: 56 private:
58 scoped_ptr<IsolatedFileUtil> isolated_file_util_; 57 scoped_ptr<IsolatedFileUtil> isolated_file_util_;
58 scoped_ptr<MediaFileUtil> media_file_util_;
59 }; 59 };
60 60
61 } // namespace fileapi 61 } // namespace fileapi
62 62
63 #endif // WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ 63 #endif // WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698