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

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

Issue 10197007: Change webkit/{fileapi,quota} code to use TaskRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test fix Created 8 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
« no previous file with comments | « webkit/fileapi/file_system_file_util_proxy.cc ('k') | webkit/fileapi/file_system_operation.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_MOUNT_POINT_PROVIDER_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/platform_file.h" 14 #include "base/platform_file.h"
15 #include "webkit/fileapi/file_system_types.h" 15 #include "webkit/fileapi/file_system_types.h"
16 16
17 class GURL; 17 class GURL;
18 18
19 namespace base {
20 class MessageLoopProxy;
21 }
22
23 namespace webkit_blob { 19 namespace webkit_blob {
24 class FileReader; 20 class FileReader;
25 } 21 }
26 22
27 namespace fileapi { 23 namespace fileapi {
28 24
29 class FileSystemContext; 25 class FileSystemContext;
30 class FileSystemFileUtil; 26 class FileSystemFileUtil;
31 class FileSystemOperationInterface; 27 class FileSystemOperationInterface;
32 class RemoteFileSystemProxyInterface; 28 class RemoteFileSystemProxyInterface;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 81
86 // Returns a new instance of the specialized FileSystemOperation for this 82 // Returns a new instance of the specialized FileSystemOperation for this
87 // mount point based on the given triplet of |origin_url|, |file_system_type| 83 // mount point based on the given triplet of |origin_url|, |file_system_type|
88 // and |virtual_path|. 84 // and |virtual_path|.
89 // This method is usually dispatched by 85 // This method is usually dispatched by
90 // FileSystemContext::CreateFileSystemOperation. 86 // FileSystemContext::CreateFileSystemOperation.
91 virtual FileSystemOperationInterface* CreateFileSystemOperation( 87 virtual FileSystemOperationInterface* CreateFileSystemOperation(
92 const GURL& origin_url, 88 const GURL& origin_url,
93 FileSystemType file_system_type, 89 FileSystemType file_system_type,
94 const FilePath& virtual_path, 90 const FilePath& virtual_path,
95 base::MessageLoopProxy* file_proxy,
96 FileSystemContext* context) const = 0; 91 FileSystemContext* context) const = 0;
97 92
98 // Creates a new file reader for a given filesystem URL |url| with a offset 93 // Creates a new file reader for a given filesystem URL |url| with a offset
99 // |offset|. 94 // |offset|.
100 // The returned object must be owned and managed by the caller. 95 // The returned object must be owned and managed by the caller.
101 // This method itself does *not* check if the given path exists and is a 96 // This method itself does *not* check if the given path exists and is a
102 // regular file. 97 // regular file.
103 virtual webkit_blob::FileReader* CreateFileReader( 98 virtual webkit_blob::FileReader* CreateFileReader(
104 const GURL& url, 99 const GURL& url,
105 int64 offset, 100 int64 offset,
106 base::MessageLoopProxy* file_proxy,
107 FileSystemContext* context) const = 0; 101 FileSystemContext* context) const = 0;
108 }; 102 };
109 103
110 // An interface to control external file system access permissions. 104 // An interface to control external file system access permissions.
111 class ExternalFileSystemMountPointProvider 105 class ExternalFileSystemMountPointProvider
112 : public FileSystemMountPointProvider { 106 : public FileSystemMountPointProvider {
113 public: 107 public:
114 // Grant access to all external file system from extension identified with 108 // Grant access to all external file system from extension identified with
115 // |extension_id|. 109 // |extension_id|.
116 virtual void GrantFullAccessToExtension(const std::string& extension_id) = 0; 110 virtual void GrantFullAccessToExtension(const std::string& extension_id) = 0;
(...skipping 16 matching lines...) Expand all
133 virtual void RemoveMountPoint(const FilePath& mount_point) = 0; 127 virtual void RemoveMountPoint(const FilePath& mount_point) = 0;
134 // Gets virtual path by known filesystem path. Returns false when filesystem 128 // Gets virtual path by known filesystem path. Returns false when filesystem
135 // path is not exposed by this provider. 129 // path is not exposed by this provider.
136 virtual bool GetVirtualPath(const FilePath& file_system_path, 130 virtual bool GetVirtualPath(const FilePath& file_system_path,
137 FilePath* virtual_path) = 0; 131 FilePath* virtual_path) = 0;
138 }; 132 };
139 133
140 } // namespace fileapi 134 } // namespace fileapi
141 135
142 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ 136 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_file_util_proxy.cc ('k') | webkit/fileapi/file_system_operation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698