| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "webkit/fileapi/file_system_types.h" | 9 #include "webkit/fileapi/file_system_types.h" |
| 10 #include "webkit/quota/quota_types.h" | 10 #include "webkit/quota/quota_types.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // The origin identifier string is a serialized form of a security origin | 49 // The origin identifier string is a serialized form of a security origin |
| 50 // and can be used as a path name as it contains no "/" or other possibly | 50 // and can be used as a path name as it contains no "/" or other possibly |
| 51 // unsafe characters. (See WebKit's SecurityOrigin code for more details.) | 51 // unsafe characters. (See WebKit's SecurityOrigin code for more details.) |
| 52 // | 52 // |
| 53 // Example: | 53 // Example: |
| 54 // "http://www.example.com:80/"'s identifier should look like: | 54 // "http://www.example.com:80/"'s identifier should look like: |
| 55 // "http_www.example.host_80" | 55 // "http_www.example.host_80" |
| 56 std::string GetOriginIdentifierFromURL(const GURL& url); | 56 std::string GetOriginIdentifierFromURL(const GURL& url); |
| 57 GURL GetOriginURLFromIdentifier(const std::string& origin_identifier); | 57 GURL GetOriginURLFromIdentifier(const std::string& origin_identifier); |
| 58 | 58 |
| 59 // Returns the string representation of the given filesystem |type|. |
| 60 // Returns an empty string if the |type| is invalid. |
| 61 std::string GetFileSystemTypeString(FileSystemType type); |
| 62 |
| 59 } // namespace fileapi | 63 } // namespace fileapi |
| 60 | 64 |
| 61 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_UTIL_H_ | 65 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_UTIL_H_ |
| OLD | NEW |