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

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

Issue 12717014: Launch packaged app with files on Drive on Chrome OS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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) 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_FILEAPI_MOUNT_POINTS_H_ 5 #ifndef WEBKIT_FILEAPI_MOUNT_POINTS_H_
6 #define WEBKIT_FILEAPI_MOUNT_POINTS_H_ 6 #define WEBKIT_FILEAPI_MOUNT_POINTS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // TODO(kinuko): Probably this should be rather named RevokeMountPoint. 50 // TODO(kinuko): Probably this should be rather named RevokeMountPoint.
51 virtual bool RevokeFileSystem(const std::string& mount_name) = 0; 51 virtual bool RevokeFileSystem(const std::string& mount_name) = 0;
52 52
53 // Returns true if the MountPoints implementation handles filesystems with 53 // Returns true if the MountPoints implementation handles filesystems with
54 // the given mount type. 54 // the given mount type.
55 virtual bool HandlesFileSystemMountType(FileSystemType type) const = 0; 55 virtual bool HandlesFileSystemMountType(FileSystemType type) const = 0;
56 56
57 // Same as CreateCrackedFileSystemURL, but cracks FileSystemURL created 57 // Same as CreateCrackedFileSystemURL, but cracks FileSystemURL created
58 // from |url|. 58 // from |url|.
59 virtual FileSystemURL CrackURL(const GURL& url) const = 0; 59 virtual FileSystemURL CrackURL(const GURL& url) const = 0;
60 virtual FileSystemURL CrackFileSystemURL(const FileSystemURL& url) const = 0;
kinuko 2013/03/19 20:34:50 Assuming that nested cracking only happens in File
kinaba 2013/03/21 07:35:13 Done.
60 61
61 // Creates a FileSystemURL with the given origin, type and path and tries to 62 // Creates a FileSystemURL with the given origin, type and path and tries to
62 // crack it as a part of one of the registered mount points. 63 // crack it as a part of one of the registered mount points.
63 // If the the URL is not valid or does not belong to any of the mount points 64 // If the the URL is not valid or does not belong to any of the mount points
64 // registered in this context, returns empty, invalid FileSystemURL. 65 // registered in this context, returns empty, invalid FileSystemURL.
65 virtual FileSystemURL CreateCrackedFileSystemURL( 66 virtual FileSystemURL CreateCrackedFileSystemURL(
66 const GURL& origin, 67 const GURL& origin,
67 fileapi::FileSystemType type, 68 fileapi::FileSystemType type,
68 const base::FilePath& path) const = 0; 69 const base::FilePath& path) const = 0;
69 70
(...skipping 19 matching lines...) Expand all
89 base::FilePath* path) const = 0; 90 base::FilePath* path) const = 0;
90 91
91 private: 92 private:
92 DISALLOW_COPY_AND_ASSIGN(MountPoints); 93 DISALLOW_COPY_AND_ASSIGN(MountPoints);
93 }; 94 };
94 95
95 } // namespace fileapi 96 } // namespace fileapi
96 97
97 #endif // WEBKIT_FILEAPI_MOUNT_POINTS_H_ 98 #endif // WEBKIT_FILEAPI_MOUNT_POINTS_H_
98 99
OLDNEW
« webkit/fileapi/file_system_types.h ('K') | « webkit/fileapi/isolated_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698