| 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 | 10 |
| 11 class FilePath; | 11 class FilePath; |
| 12 class GURL; | 12 class GURL; |
| 13 | 13 |
| 14 namespace fileapi { | 14 namespace fileapi { |
| 15 | 15 |
| 16 extern const char kPersistentDir[]; |
| 17 extern const char kTemporaryDir[]; |
| 18 extern const char kExternalDir[]; |
| 19 extern const char kPersistentName[]; |
| 20 extern const char kTemporaryName[]; |
| 21 extern const char kExternalName[]; |
| 22 |
| 16 // The file_path this returns will be using '/' as a path separator, no matter | 23 // The file_path this returns will be using '/' as a path separator, no matter |
| 17 // what platform you're on. | 24 // what platform you're on. |
| 18 bool CrackFileSystemURL(const GURL& url, GURL* origin_url, FileSystemType* type, | 25 bool CrackFileSystemURL(const GURL& url, GURL* origin_url, FileSystemType* type, |
| 19 FilePath* file_path); | 26 FilePath* file_path); |
| 20 | 27 |
| 21 GURL GetFileSystemRootURI(const GURL& origin_url, fileapi::FileSystemType type); | 28 GURL GetFileSystemRootURI(const GURL& origin_url, fileapi::FileSystemType type); |
| 22 | 29 |
| 23 } // namespace fileapi | 30 } // namespace fileapi |
| 24 | 31 |
| 25 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_UTIL_H_ | 32 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_UTIL_H_ |
| OLD | NEW |