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

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

Issue 498273002: Rename storage-related export macros and build targets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « webkit/browser/fileapi/dragged_file_util.h ('k') | webkit/browser/fileapi/file_observers.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) 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/storage_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 storage { 23 namespace storage {
24 24
25 class FileSystemURL; 25 class FileSystemURL;
26 26
27 // Manages external filesystem namespaces that are identified by 'mount name' 27 // Manages external filesystem namespaces that are identified by 'mount name'
28 // and are persisted until RevokeFileSystem is called. 28 // and are persisted until RevokeFileSystem is called.
29 // Files in an external filesystem are identified by a filesystem URL like: 29 // Files in an external filesystem are identified by a filesystem URL like:
30 // 30 //
31 // filesystem:<origin>/external/<mount_name>/relative/path 31 // filesystem:<origin>/external/<mount_name>/relative/path
32 // 32 //
33 class WEBKIT_STORAGE_BROWSER_EXPORT ExternalMountPoints 33 class STORAGE_EXPORT ExternalMountPoints
34 : public base::RefCountedThreadSafe<ExternalMountPoints>, 34 : public base::RefCountedThreadSafe<ExternalMountPoints>,
35 public MountPoints { 35 public MountPoints {
36 public: 36 public:
37 static ExternalMountPoints* GetSystemInstance(); 37 static ExternalMountPoints* GetSystemInstance();
38 static scoped_refptr<ExternalMountPoints> CreateRefCounted(); 38 static scoped_refptr<ExternalMountPoints> CreateRefCounted();
39 39
40 // Registers a new named external filesystem. 40 // Registers a new named external filesystem.
41 // The |path| is registered as the root path of the mount point which 41 // The |path| is registered as the root path of the mount point which
42 // is identified by a URL "filesystem:.../external/mount_name". 42 // is identified by a URL "filesystem:.../external/mount_name".
43 // 43 //
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 NameToInstance instance_map_; 151 NameToInstance instance_map_;
152 PathToName path_to_name_map_; 152 PathToName path_to_name_map_;
153 153
154 DISALLOW_COPY_AND_ASSIGN(ExternalMountPoints); 154 DISALLOW_COPY_AND_ASSIGN(ExternalMountPoints);
155 }; 155 };
156 156
157 } // namespace storage 157 } // namespace storage
158 158
159 #endif // WEBKIT_BROWSER_FILEAPI_EXTERNAL_MOUNT_POINTS_H_ 159 #endif // WEBKIT_BROWSER_FILEAPI_EXTERNAL_MOUNT_POINTS_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/dragged_file_util.h ('k') | webkit/browser/fileapi/file_observers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698