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

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

Issue 10447055: Move fileapi into its own component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes and use FILEAPI_EXPORT_PRIVATE Created 8 years, 6 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_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/platform_file.h" 13 #include "base/platform_file.h"
14 #include "webkit/fileapi/fileapi_export.h"
14 #include "webkit/fileapi/file_system_types.h" 15 #include "webkit/fileapi/file_system_types.h"
15 16
16 class GURL; 17 class GURL;
17 18
18 namespace webkit_blob { 19 namespace webkit_blob {
19 class FileReader; 20 class FileReader;
20 } 21 }
21 22
22 namespace fileapi { 23 namespace fileapi {
23 24
24 class FileSystemContext; 25 class FileSystemContext;
25 class FileSystemFileUtil; 26 class FileSystemFileUtil;
26 class FileSystemOperationInterface; 27 class FileSystemOperationInterface;
27 class FileSystemQuotaUtil; 28 class FileSystemQuotaUtil;
28 class FileWriter; 29 class FileWriter;
29 class RemoteFileSystemProxyInterface; 30 class RemoteFileSystemProxyInterface;
30 31
31 // An interface to provide mount-point-specific path-related utilities 32 // An interface to provide mount-point-specific path-related utilities
32 // and specialized FileSystemFileUtil instance. 33 // and specialized FileSystemFileUtil instance.
33 class FileSystemMountPointProvider { 34 class FILEAPI_EXPORT FileSystemMountPointProvider {
34 public: 35 public:
35 // Callback for ValidateFileSystemRoot. 36 // Callback for ValidateFileSystemRoot.
36 typedef base::Callback<void(base::PlatformFileError error)> 37 typedef base::Callback<void(base::PlatformFileError error)>
37 ValidateFileSystemCallback; 38 ValidateFileSystemCallback;
38 virtual ~FileSystemMountPointProvider() {} 39 virtual ~FileSystemMountPointProvider() {}
39 40
40 // Validates the filesystem for the given |origin_url| and |type|. 41 // Validates the filesystem for the given |origin_url| and |type|.
41 // This verifies if it is allowed to request (or create) the filesystem 42 // This verifies if it is allowed to request (or create) the filesystem
42 // and if it can access (or create) the root directory of the mount point. 43 // and if it can access (or create) the root directory of the mount point.
43 // If |create| is true this may also create the root directory for 44 // If |create| is true this may also create the root directory for
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 virtual void RemoveMountPoint(const FilePath& mount_point) = 0; 143 virtual void RemoveMountPoint(const FilePath& mount_point) = 0;
143 // Gets virtual path by known filesystem path. Returns false when filesystem 144 // Gets virtual path by known filesystem path. Returns false when filesystem
144 // path is not exposed by this provider. 145 // path is not exposed by this provider.
145 virtual bool GetVirtualPath(const FilePath& file_system_path, 146 virtual bool GetVirtualPath(const FilePath& file_system_path,
146 FilePath* virtual_path) = 0; 147 FilePath* virtual_path) = 0;
147 }; 148 };
148 149
149 } // namespace fileapi 150 } // namespace fileapi
150 151
151 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ 152 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698