| 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 #include "webkit/common/fileapi/file_system_util.h" | 5 #include "webkit/common/fileapi/file_system_util.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 return "Syncable"; | 251 return "Syncable"; |
| 252 case kFileSystemTypeNativeForPlatformApp: | 252 case kFileSystemTypeNativeForPlatformApp: |
| 253 return "NativeForPlatformApp"; | 253 return "NativeForPlatformApp"; |
| 254 case kFileSystemTypeForTransientFile: | 254 case kFileSystemTypeForTransientFile: |
| 255 return "TransientFile"; | 255 return "TransientFile"; |
| 256 case kFileSystemTypePluginPrivate: | 256 case kFileSystemTypePluginPrivate: |
| 257 return "PluginPrivate"; | 257 return "PluginPrivate"; |
| 258 case kFileSystemInternalTypeEnumStart: | 258 case kFileSystemInternalTypeEnumStart: |
| 259 case kFileSystemInternalTypeEnumEnd: | 259 case kFileSystemInternalTypeEnumEnd: |
| 260 NOTREACHED(); | 260 NOTREACHED(); |
| 261 // Fall through. | 261 FALLTHROUGH_INTENDED; |
| 262 case kFileSystemTypeUnknown: | 262 case kFileSystemTypeUnknown: |
| 263 return "Unknown"; | 263 return "Unknown"; |
| 264 } | 264 } |
| 265 NOTREACHED(); | 265 NOTREACHED(); |
| 266 return std::string(); | 266 return std::string(); |
| 267 } | 267 } |
| 268 | 268 |
| 269 std::string FilePathToString(const base::FilePath& file_path) { | 269 std::string FilePathToString(const base::FilePath& file_path) { |
| 270 #if defined(OS_WIN) | 270 #if defined(OS_WIN) |
| 271 return base::UTF16ToUTF8(file_path.value()); | 271 return base::UTF16ToUTF8(file_path.value()); |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 #if defined(OS_CHROMEOS) | 446 #if defined(OS_CHROMEOS) |
| 447 FileSystemInfo GetFileSystemInfoForChromeOS(const GURL& origin_url) { | 447 FileSystemInfo GetFileSystemInfoForChromeOS(const GURL& origin_url) { |
| 448 FileSystemType mount_type = fileapi::kFileSystemTypeExternal; | 448 FileSystemType mount_type = fileapi::kFileSystemTypeExternal; |
| 449 return FileSystemInfo(fileapi::GetFileSystemName(origin_url, mount_type), | 449 return FileSystemInfo(fileapi::GetFileSystemName(origin_url, mount_type), |
| 450 fileapi::GetFileSystemRootURI(origin_url, mount_type), | 450 fileapi::GetFileSystemRootURI(origin_url, mount_type), |
| 451 mount_type); | 451 mount_type); |
| 452 } | 452 } |
| 453 #endif | 453 #endif |
| 454 | 454 |
| 455 } // namespace fileapi | 455 } // namespace fileapi |
| OLD | NEW |