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_EXTERNAL_MOUNT_POINTS_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_EXTERNAL_MOUNT_POINTS_H_ |
6 #define WEBKIT_BROWSER_FILEAPI_EXTERNAL_MOUNT_POINTS_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_EXTERNAL_MOUNT_POINTS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
14 #include "webkit/browser/fileapi/mount_points.h" | 14 #include "webkit/browser/fileapi/mount_points.h" |
15 #include "webkit/browser/webkit_storage_browser_export.h" | 15 #include "webkit/browser/webkit_storage_browser_export.h" |
16 #include "webkit/common/fileapi/file_system_mount_option.h" | 16 #include "webkit/common/fileapi/file_system_mount_option.h" |
17 #include "webkit/common/fileapi/file_system_types.h" | 17 #include "webkit/common/fileapi/file_system_types.h" |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 class FilePath; | 20 class FilePath; |
21 } | 21 } |
22 | 22 |
23 namespace fileapi { | 23 namespace fileapi { |
| 24 class FileSystemURL; |
| 25 } |
| 26 |
| 27 namespace fileapi { |
24 | 28 |
25 class FileSystemURL; | |
26 | |
27 // Manages external filesystem namespaces that are identified by 'mount name' | 29 // Manages external filesystem namespaces that are identified by 'mount name' |
28 // and are persisted until RevokeFileSystem is called. | 30 // and are persisted until RevokeFileSystem is called. |
29 // Files in an external filesystem are identified by a filesystem URL like: | 31 // Files in an external filesystem are identified by a filesystem URL like: |
30 // | 32 // |
31 // filesystem:<origin>/external/<mount_name>/relative/path | 33 // filesystem:<origin>/external/<mount_name>/relative/path |
32 // | 34 // |
33 class WEBKIT_STORAGE_BROWSER_EXPORT ExternalMountPoints | 35 class WEBKIT_STORAGE_BROWSER_EXPORT ExternalMountPoints |
34 : public base::RefCountedThreadSafe<ExternalMountPoints>, | 36 : public base::RefCountedThreadSafe<ExternalMountPoints>, |
35 public MountPoints { | 37 public MountPoints { |
36 public: | 38 public: |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 143 |
142 NameToInstance instance_map_; | 144 NameToInstance instance_map_; |
143 PathToName path_to_name_map_; | 145 PathToName path_to_name_map_; |
144 | 146 |
145 DISALLOW_COPY_AND_ASSIGN(ExternalMountPoints); | 147 DISALLOW_COPY_AND_ASSIGN(ExternalMountPoints); |
146 }; | 148 }; |
147 | 149 |
148 } // namespace fileapi | 150 } // namespace fileapi |
149 | 151 |
150 #endif // WEBKIT_BROWSER_FILEAPI_EXTERNAL_MOUNT_POINTS_H_ | 152 #endif // WEBKIT_BROWSER_FILEAPI_EXTERNAL_MOUNT_POINTS_H_ |
OLD | NEW |