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

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

Issue 11103031: webkit: Merge blob and fileapi into one build target 'storage' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Leave *.gypi files in blob and fileapi Created 8 years, 2 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.h ('k') | webkit/fileapi/file_system_operation_context.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/platform_file.h" 13 #include "base/platform_file.h"
14 #include "webkit/fileapi/fileapi_export.h"
15 #include "webkit/fileapi/file_system_types.h" 14 #include "webkit/fileapi/file_system_types.h"
15 #include "webkit/storage/webkit_storage_export.h"
16 16
17 namespace webkit_blob { 17 namespace webkit_blob {
18 class FileStreamReader; 18 class FileStreamReader;
19 } 19 }
20 20
21 namespace fileapi { 21 namespace fileapi {
22 22
23 class FileSystemURL; 23 class FileSystemURL;
24 class FileStreamWriter; 24 class FileStreamWriter;
25 class FileSystemContext; 25 class FileSystemContext;
26 class FileSystemFileUtil; 26 class FileSystemFileUtil;
27 class FileSystemOperation; 27 class FileSystemOperation;
28 class FileSystemQuotaUtil; 28 class FileSystemQuotaUtil;
29 class RemoteFileSystemProxyInterface; 29 class RemoteFileSystemProxyInterface;
30 30
31 // An interface to provide mount-point-specific path-related utilities 31 // An interface to provide mount-point-specific path-related utilities
32 // and specialized FileSystemFileUtil instance. 32 // and specialized FileSystemFileUtil instance.
33 class FILEAPI_EXPORT FileSystemMountPointProvider { 33 class WEBKIT_STORAGE_EXPORT FileSystemMountPointProvider {
34 public: 34 public:
35 // Callback for ValidateFileSystemRoot. 35 // Callback for ValidateFileSystemRoot.
36 typedef base::Callback<void(base::PlatformFileError error)> 36 typedef base::Callback<void(base::PlatformFileError error)>
37 ValidateFileSystemCallback; 37 ValidateFileSystemCallback;
38 typedef base::Callback<void(base::PlatformFileError error)> 38 typedef base::Callback<void(base::PlatformFileError error)>
39 DeleteFileSystemCallback; 39 DeleteFileSystemCallback;
40 virtual ~FileSystemMountPointProvider() {} 40 virtual ~FileSystemMountPointProvider() {}
41 41
42 // Validates the filesystem for the given |origin_url| and |type|. 42 // Validates the filesystem for the given |origin_url| and |type|.
43 // This verifies if it is allowed to request (or create) the filesystem 43 // This verifies if it is allowed to request (or create) the filesystem
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 virtual void RemoveMountPoint(const FilePath& mount_point) = 0; 156 virtual void RemoveMountPoint(const FilePath& mount_point) = 0;
157 // Gets virtual path by known filesystem path. Returns false when filesystem 157 // Gets virtual path by known filesystem path. Returns false when filesystem
158 // path is not exposed by this provider. 158 // path is not exposed by this provider.
159 virtual bool GetVirtualPath(const FilePath& file_system_path, 159 virtual bool GetVirtualPath(const FilePath& file_system_path,
160 FilePath* virtual_path) = 0; 160 FilePath* virtual_path) = 0;
161 }; 161 };
162 162
163 } // namespace fileapi 163 } // namespace fileapi
164 164
165 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ 165 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_file_util.h ('k') | webkit/fileapi/file_system_operation_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698