| 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 "storage/common/fileapi/file_system_util.h" | 5 #include "storage/common/fileapi/file_system_util.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 case kFileSystemTypeForTransientFile: | 314 case kFileSystemTypeForTransientFile: |
| 315 return "TransientFile"; | 315 return "TransientFile"; |
| 316 case kFileSystemTypePluginPrivate: | 316 case kFileSystemTypePluginPrivate: |
| 317 return "PluginPrivate"; | 317 return "PluginPrivate"; |
| 318 case kFileSystemTypeCloudDevice: | 318 case kFileSystemTypeCloudDevice: |
| 319 return "CloudDevice"; | 319 return "CloudDevice"; |
| 320 case kFileSystemTypeProvided: | 320 case kFileSystemTypeProvided: |
| 321 return "Provided"; | 321 return "Provided"; |
| 322 case kFileSystemTypeDeviceMediaAsFileStorage: | 322 case kFileSystemTypeDeviceMediaAsFileStorage: |
| 323 return "DeviceMediaStorage"; | 323 return "DeviceMediaStorage"; |
| 324 case kFileSystemTypeArcContent: |
| 325 return "ArcContent"; |
| 324 case kFileSystemInternalTypeEnumStart: | 326 case kFileSystemInternalTypeEnumStart: |
| 325 case kFileSystemInternalTypeEnumEnd: | 327 case kFileSystemInternalTypeEnumEnd: |
| 326 NOTREACHED(); | 328 NOTREACHED(); |
| 327 // Fall through. | 329 // Fall through. |
| 328 case kFileSystemTypeUnknown: | 330 case kFileSystemTypeUnknown: |
| 329 return "Unknown"; | 331 return "Unknown"; |
| 330 } | 332 } |
| 331 NOTREACHED(); | 333 NOTREACHED(); |
| 332 return std::string(); | 334 return std::string(); |
| 333 } | 335 } |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 return base::File::FILE_ERROR_ABORT; | 503 return base::File::FILE_ERROR_ABORT; |
| 502 case net::ERR_ADDRESS_INVALID: | 504 case net::ERR_ADDRESS_INVALID: |
| 503 case net::ERR_INVALID_URL: | 505 case net::ERR_INVALID_URL: |
| 504 return base::File::FILE_ERROR_INVALID_URL; | 506 return base::File::FILE_ERROR_INVALID_URL; |
| 505 default: | 507 default: |
| 506 return base::File::FILE_ERROR_FAILED; | 508 return base::File::FILE_ERROR_FAILED; |
| 507 } | 509 } |
| 508 } | 510 } |
| 509 | 511 |
| 510 } // namespace storage | 512 } // namespace storage |
| OLD | NEW |