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

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: Fix nit Created 8 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_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"
10 #include "webkit/fileapi/media/media_file_system_config.h"
12 11
13 namespace fileapi { 12 namespace fileapi {
14 13
15 class DraggedFileUtil; 14 class DraggedFileUtil;
16 class IsolatedContext; 15 class IsolatedContext;
17 class IsolatedFileUtil; 16 class IsolatedFileUtil;
18 17
18 #if defined(SUPPORT_MEDIA_FILESYSTEM)
19 class DeviceMediaFileUtil;
20 #endif
21
19 class IsolatedMountPointProvider : public FileSystemMountPointProvider { 22 class IsolatedMountPointProvider : public FileSystemMountPointProvider {
20 public: 23 public:
21 typedef FileSystemMountPointProvider::ValidateFileSystemCallback 24 typedef FileSystemMountPointProvider::ValidateFileSystemCallback
22 ValidateFileSystemCallback; 25 ValidateFileSystemCallback;
23 26
24 IsolatedMountPointProvider(); 27 IsolatedMountPointProvider(const FilePath& profile_path);
25 virtual ~IsolatedMountPointProvider(); 28 virtual ~IsolatedMountPointProvider();
26 29
27 // FileSystemMountPointProvider implementation. 30 // FileSystemMountPointProvider implementation.
28 virtual void ValidateFileSystemRoot( 31 virtual void ValidateFileSystemRoot(
29 const GURL& origin_url, 32 const GURL& origin_url,
30 FileSystemType type, 33 FileSystemType type,
31 bool create, 34 bool create,
32 const ValidateFileSystemCallback& callback) OVERRIDE; 35 const ValidateFileSystemCallback& callback) OVERRIDE;
33 virtual FilePath GetFileSystemRootPathOnFileThread( 36 virtual FilePath GetFileSystemRootPathOnFileThread(
34 const GURL& origin_url, 37 const GURL& origin_url,
(...skipping 14 matching lines...) Expand all
49 const FileSystemURL& url, 52 const FileSystemURL& url,
50 int64 offset, 53 int64 offset,
51 FileSystemContext* context) const OVERRIDE; 54 FileSystemContext* context) const OVERRIDE;
52 virtual FileStreamWriter* CreateFileStreamWriter( 55 virtual FileStreamWriter* CreateFileStreamWriter(
53 const FileSystemURL& url, 56 const FileSystemURL& url,
54 int64 offset, 57 int64 offset,
55 FileSystemContext* context) const OVERRIDE; 58 FileSystemContext* context) const OVERRIDE;
56 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; 59 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
57 60
58 private: 61 private:
62 // Store the profile path. We need this to create temporary snapshot files.
63 const FilePath profile_path_;
64
59 scoped_ptr<IsolatedFileUtil> isolated_file_util_; 65 scoped_ptr<IsolatedFileUtil> isolated_file_util_;
60 scoped_ptr<DraggedFileUtil> dragged_file_util_; 66 scoped_ptr<DraggedFileUtil> dragged_file_util_;
67
68 #if defined(SUPPORT_MEDIA_FILESYSTEM)
69 scoped_ptr<DeviceMediaFileUtil> device_media_file_util_;
70 #endif
61 }; 71 };
62 72
63 } // namespace fileapi 73 } // namespace fileapi
64 74
65 #endif // WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ 75 #endif // WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698