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

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

Issue 15994002: Move more browser-specific webkit/fileapi code to webkit/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_
6 #define WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "webkit/browser/fileapi/file_system_mount_point_provider.h"
10
11 namespace fileapi {
12
13 class AsyncFileUtilAdapter;
14
15 class IsolatedMountPointProvider : public FileSystemMountPointProvider {
16 public:
17 IsolatedMountPointProvider();
18 virtual ~IsolatedMountPointProvider();
19
20 // FileSystemMountPointProvider implementation.
21 virtual bool CanHandleType(FileSystemType type) const OVERRIDE;
22 virtual void ValidateFileSystemRoot(
23 const GURL& origin_url,
24 FileSystemType type,
25 bool create,
26 const ValidateFileSystemCallback& callback) OVERRIDE;
27 virtual base::FilePath GetFileSystemRootPathOnFileThread(
28 const FileSystemURL& url,
29 bool create) OVERRIDE;
30 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE;
31 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE;
32 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory(
33 FileSystemType type,
34 base::PlatformFileError* error_code) OVERRIDE;
35 virtual void InitializeCopyOrMoveFileValidatorFactory(
36 FileSystemType type,
37 scoped_ptr<CopyOrMoveFileValidatorFactory> factory) OVERRIDE;
38 virtual FilePermissionPolicy GetPermissionPolicy(
39 const FileSystemURL& url,
40 int permissions) const OVERRIDE;
41 virtual FileSystemOperation* CreateFileSystemOperation(
42 const FileSystemURL& url,
43 FileSystemContext* context,
44 base::PlatformFileError* error_code) const OVERRIDE;
45 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader(
46 const FileSystemURL& url,
47 int64 offset,
48 const base::Time& expected_modification_time,
49 FileSystemContext* context) const OVERRIDE;
50 virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter(
51 const FileSystemURL& url,
52 int64 offset,
53 FileSystemContext* context) const OVERRIDE;
54 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
55 virtual void DeleteFileSystem(
56 const GURL& origin_url,
57 FileSystemType type,
58 FileSystemContext* context,
59 const DeleteFileSystemCallback& callback) OVERRIDE;
60
61 private:
62 scoped_ptr<AsyncFileUtilAdapter> isolated_file_util_;
63 scoped_ptr<AsyncFileUtilAdapter> dragged_file_util_;
64 scoped_ptr<AsyncFileUtilAdapter> transient_file_util_;
65 };
66
67 } // namespace fileapi
68
69 #endif // WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/isolated_context_unittest.cc ('k') | webkit/fileapi/isolated_mount_point_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698