| 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 return "Drive"; | 248 return "Drive"; |
| 249 case kFileSystemTypeSyncable: | 249 case kFileSystemTypeSyncable: |
| 250 case kFileSystemTypeSyncableForInternalSync: | 250 case kFileSystemTypeSyncableForInternalSync: |
| 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 kFileSystemTypePrivet: |
| 259 return "Privet"; |
| 258 case kFileSystemInternalTypeEnumStart: | 260 case kFileSystemInternalTypeEnumStart: |
| 259 case kFileSystemInternalTypeEnumEnd: | 261 case kFileSystemInternalTypeEnumEnd: |
| 260 NOTREACHED(); | 262 NOTREACHED(); |
| 261 // Fall through. | 263 // Fall through. |
| 262 case kFileSystemTypeUnknown: | 264 case kFileSystemTypeUnknown: |
| 263 return "Unknown"; | 265 return "Unknown"; |
| 264 } | 266 } |
| 265 NOTREACHED(); | 267 NOTREACHED(); |
| 266 return std::string(); | 268 return std::string(); |
| 267 } | 269 } |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 #if defined(OS_CHROMEOS) | 448 #if defined(OS_CHROMEOS) |
| 447 FileSystemInfo GetFileSystemInfoForChromeOS(const GURL& origin_url) { | 449 FileSystemInfo GetFileSystemInfoForChromeOS(const GURL& origin_url) { |
| 448 FileSystemType mount_type = fileapi::kFileSystemTypeExternal; | 450 FileSystemType mount_type = fileapi::kFileSystemTypeExternal; |
| 449 return FileSystemInfo(fileapi::GetFileSystemName(origin_url, mount_type), | 451 return FileSystemInfo(fileapi::GetFileSystemName(origin_url, mount_type), |
| 450 fileapi::GetFileSystemRootURI(origin_url, mount_type), | 452 fileapi::GetFileSystemRootURI(origin_url, mount_type), |
| 451 mount_type); | 453 mount_type); |
| 452 } | 454 } |
| 453 #endif | 455 #endif |
| 454 | 456 |
| 455 } // namespace fileapi | 457 } // namespace fileapi |
| OLD | NEW |