OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_MOUNT_POINTS_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_MOUNT_POINTS_H_ |
6 #define WEBKIT_BROWSER_FILEAPI_MOUNT_POINTS_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_MOUNT_POINTS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "webkit/browser/webkit_storage_browser_export.h" |
13 #include "webkit/common/fileapi/file_system_util.h" | 14 #include "webkit/common/fileapi/file_system_util.h" |
14 #include "webkit/storage/webkit_storage_export.h" | |
15 | 15 |
16 class GURL; | 16 class GURL; |
17 | 17 |
18 namespace fileapi { | 18 namespace fileapi { |
19 class FileSystemURL; | 19 class FileSystemURL; |
20 } | 20 } |
21 | 21 |
22 namespace fileapi { | 22 namespace fileapi { |
23 | 23 |
24 // Represents a set of mount points for File API. | 24 // Represents a set of mount points for File API. |
25 class WEBKIT_STORAGE_EXPORT MountPoints { | 25 class WEBKIT_STORAGE_BROWSER_EXPORT MountPoints { |
26 public: | 26 public: |
27 struct WEBKIT_STORAGE_EXPORT MountPointInfo { | 27 struct WEBKIT_STORAGE_BROWSER_EXPORT MountPointInfo { |
28 MountPointInfo(); | 28 MountPointInfo(); |
29 MountPointInfo(const std::string& name, const base::FilePath& path); | 29 MountPointInfo(const std::string& name, const base::FilePath& path); |
30 | 30 |
31 // The name to be used to register the path. The registered file can | 31 // The name to be used to register the path. The registered file can |
32 // be referred by a virtual path /<filesystem_id>/<name>. | 32 // be referred by a virtual path /<filesystem_id>/<name>. |
33 // The name should NOT contain a path separator '/'. | 33 // The name should NOT contain a path separator '/'. |
34 std::string name; | 34 std::string name; |
35 | 35 |
36 // The path of the file. | 36 // The path of the file. |
37 base::FilePath path; | 37 base::FilePath path; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 // URL cracking in FileSystemContext. | 96 // URL cracking in FileSystemContext. |
97 virtual FileSystemURL CrackFileSystemURL(const FileSystemURL& url) const = 0; | 97 virtual FileSystemURL CrackFileSystemURL(const FileSystemURL& url) const = 0; |
98 | 98 |
99 private: | 99 private: |
100 DISALLOW_COPY_AND_ASSIGN(MountPoints); | 100 DISALLOW_COPY_AND_ASSIGN(MountPoints); |
101 }; | 101 }; |
102 | 102 |
103 } // namespace fileapi | 103 } // namespace fileapi |
104 | 104 |
105 #endif // WEBKIT_BROWSER_FILEAPI_MOUNT_POINTS_H_ | 105 #endif // WEBKIT_BROWSER_FILEAPI_MOUNT_POINTS_H_ |
106 | |
OLD | NEW |