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

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

Issue 16701004: Fix webkit_storage exports definitions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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_BROWSER_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_
6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ 6 #define WEBKIT_BROWSER_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/files/file_path.h" 12 #include "base/files/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/browser/fileapi/file_permission_policy.h" 15 #include "webkit/browser/fileapi/file_permission_policy.h"
16 #include "webkit/browser/fileapi/open_file_system_mode.h" 16 #include "webkit/browser/fileapi/open_file_system_mode.h"
17 #include "webkit/browser/webkit_storage_browser_export.h"
17 #include "webkit/common/fileapi/file_system_types.h" 18 #include "webkit/common/fileapi/file_system_types.h"
18 #include "webkit/storage/webkit_storage_export.h"
19 19
20 class GURL; 20 class GURL;
21 21
22 namespace webkit_blob { 22 namespace webkit_blob {
23 class FileStreamReader; 23 class FileStreamReader;
24 } 24 }
25 25
26 namespace fileapi { 26 namespace fileapi {
27 27
28 class AsyncFileUtil; 28 class AsyncFileUtil;
29 class CopyOrMoveFileValidatorFactory; 29 class CopyOrMoveFileValidatorFactory;
30 class FileSystemURL; 30 class FileSystemURL;
31 class FileStreamWriter; 31 class FileStreamWriter;
32 class FileSystemContext; 32 class FileSystemContext;
33 class FileSystemFileUtil; 33 class FileSystemFileUtil;
34 class FileSystemOperation; 34 class FileSystemOperation;
35 class FileSystemQuotaUtil; 35 class FileSystemQuotaUtil;
36 class RemoteFileSystemProxyInterface; 36 class RemoteFileSystemProxyInterface;
37 37
38 // An interface to provide mount-point-specific path-related utilities 38 // An interface to provide mount-point-specific path-related utilities
39 // and specialized FileSystemFileUtil instance. 39 // and specialized FileSystemFileUtil instance.
40 // 40 //
41 // NOTE: when you implement a new MountPointProvider for your own 41 // NOTE: when you implement a new MountPointProvider for your own
42 // FileSystem module, please contact to kinuko@chromium.org. 42 // FileSystem module, please contact to kinuko@chromium.org.
43 // 43 //
44 class WEBKIT_STORAGE_EXPORT FileSystemMountPointProvider { 44 class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemMountPointProvider {
45 public: 45 public:
46 // Callback for OpenFileSystem. 46 // Callback for OpenFileSystem.
47 typedef base::Callback<void(base::PlatformFileError error)> 47 typedef base::Callback<void(base::PlatformFileError error)>
48 OpenFileSystemCallback; 48 OpenFileSystemCallback;
49 typedef base::Callback<void(base::PlatformFileError error)> 49 typedef base::Callback<void(base::PlatformFileError error)>
50 DeleteFileSystemCallback; 50 DeleteFileSystemCallback;
51 virtual ~FileSystemMountPointProvider() {} 51 virtual ~FileSystemMountPointProvider() {}
52 52
53 // Returns true if this mount point provider can handle |type|. 53 // Returns true if this mount point provider can handle |type|.
54 // One mount point provider may be able to handle multiple filesystem types. 54 // One mount point provider may be able to handle multiple filesystem types.
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 const std::string& extension_id) = 0; 158 const std::string& extension_id) = 0;
159 // Gets virtual path by known filesystem path. Returns false when filesystem 159 // Gets virtual path by known filesystem path. Returns false when filesystem
160 // path is not exposed by this provider. 160 // path is not exposed by this provider.
161 virtual bool GetVirtualPath(const base::FilePath& file_system_path, 161 virtual bool GetVirtualPath(const base::FilePath& file_system_path,
162 base::FilePath* virtual_path) = 0; 162 base::FilePath* virtual_path) = 0;
163 }; 163 };
164 164
165 } // namespace fileapi 165 } // namespace fileapi
166 166
167 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ 167 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/file_system_file_util.h ('k') | webkit/browser/fileapi/file_system_operation_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698