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

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

Issue 341043008: Add FileSystemID parameter to IsolatedContext::RegisterFileSystemForPath. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « webkit/browser/fileapi/isolated_context.cc ('k') | no next file » | 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_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
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // valid registered filesystem ID or mount name for an existing mount point. 80 // valid registered filesystem ID or mount name for an existing mount point.
81 // 81 //
82 // Returns false if the given virtual_path cannot be cracked. 82 // Returns false if the given virtual_path cannot be cracked.
83 // 83 //
84 // Note that |path| is set to empty paths if the filesystem type is isolated 84 // Note that |path| is set to empty paths if the filesystem type is isolated
85 // and |virtual_path| has no <relative_path> part (i.e. pointing to the 85 // and |virtual_path| has no <relative_path> part (i.e. pointing to the
86 // virtual root). 86 // virtual root).
87 virtual bool CrackVirtualPath(const base::FilePath& virtual_path, 87 virtual bool CrackVirtualPath(const base::FilePath& virtual_path,
88 std::string* mount_name, 88 std::string* mount_name,
89 FileSystemType* type, 89 FileSystemType* type,
90 std::string* cracked_id,
90 base::FilePath* path, 91 base::FilePath* path,
91 FileSystemMountOption* mount_option) const = 0; 92 FileSystemMountOption* mount_option) const = 0;
92 93
93 protected: 94 protected:
94 friend class FileSystemContext; 95 friend class FileSystemContext;
95 96
96 // Same as CrackURL and CreateCrackedFileSystemURL, but cracks the url already 97 // Same as CrackURL and CreateCrackedFileSystemURL, but cracks the url already
97 // instantiated as the FileSystemURL class. This is internally used for nested 98 // instantiated as the FileSystemURL class. This is internally used for nested
98 // URL cracking in FileSystemContext. 99 // URL cracking in FileSystemContext.
99 virtual FileSystemURL CrackFileSystemURL(const FileSystemURL& url) const = 0; 100 virtual FileSystemURL CrackFileSystemURL(const FileSystemURL& url) const = 0;
100 101
101 private: 102 private:
102 DISALLOW_COPY_AND_ASSIGN(MountPoints); 103 DISALLOW_COPY_AND_ASSIGN(MountPoints);
103 }; 104 };
104 105
105 } // namespace fileapi 106 } // namespace fileapi
106 107
107 #endif // WEBKIT_BROWSER_FILEAPI_MOUNT_POINTS_H_ 108 #endif // WEBKIT_BROWSER_FILEAPI_MOUNT_POINTS_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/isolated_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698