OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_FILE_SYSTEM_UTIL_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_UTIL_H_ |
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_UTIL_H_ | 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
116 const std::string& filesystem_id); | 116 const std::string& filesystem_id); |
117 | 117 |
118 // Find the file system id from |filesystem_name|. Should only be used by | 118 // Find the file system id from |filesystem_name|. Should only be used by |
119 // platform apps. This function will return false if the file system name is | 119 // platform apps. This function will return false if the file system name is |
120 // not of the form {origin}:Isolated_{id}, and will also check that there is an | 120 // not of the form {origin}:Isolated_{id}, and will also check that there is an |
121 // origin and id present. It will not check that the origin or id are valid. | 121 // origin and id present. It will not check that the origin or id are valid. |
122 WEBKIT_STORAGE_EXPORT bool CrackIsolatedFileSystemName( | 122 WEBKIT_STORAGE_EXPORT bool CrackIsolatedFileSystemName( |
123 const std::string& filesystem_name, | 123 const std::string& filesystem_name, |
124 std::string* filesystem_id); | 124 std::string* filesystem_id); |
125 | 125 |
126 // Returns the root URI for an isolated filesystem for origin |origin_url| | |
127 // for |filesystem_id|. If the |optional_root_name| is given the resulting | |
Lei Zhang
2013/01/09 21:29:03
nit: for -> and
kinuko
2013/01/10 04:03:14
Done.
| |
128 // root URI will point to the subfolder within the isolated filesystem. | |
129 WEBKIT_STORAGE_EXPORT std::string GetIsolatedFileSystemRootURIString( | |
130 const GURL& origin_url, | |
131 const std::string& filesystem_id, | |
132 const std::string& optional_root_name); | |
133 | |
126 } // namespace fileapi | 134 } // namespace fileapi |
127 | 135 |
128 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_UTIL_H_ | 136 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_UTIL_H_ |
OLD | NEW |