Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: storage/common/fileapi/file_system_util.cc

Issue 1093383002: [WIP] Provided file system from NACL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved several modules to chromeos folder. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 case kFileSystemTypeNativeForPlatformApp: 310 case kFileSystemTypeNativeForPlatformApp:
311 return "NativeForPlatformApp"; 311 return "NativeForPlatformApp";
312 case kFileSystemTypeForTransientFile: 312 case kFileSystemTypeForTransientFile:
313 return "TransientFile"; 313 return "TransientFile";
314 case kFileSystemTypePluginPrivate: 314 case kFileSystemTypePluginPrivate:
315 return "PluginPrivate"; 315 return "PluginPrivate";
316 case kFileSystemTypeCloudDevice: 316 case kFileSystemTypeCloudDevice:
317 return "CloudDevice"; 317 return "CloudDevice";
318 case kFileSystemTypeProvided: 318 case kFileSystemTypeProvided:
319 return "Provided"; 319 return "Provided";
320 case kFileSystemTypePluginProvided:
321 return "PluginProvided";
320 case kFileSystemTypeDeviceMediaAsFileStorage: 322 case kFileSystemTypeDeviceMediaAsFileStorage:
321 return "DeviceMediaStorage"; 323 return "DeviceMediaStorage";
322 case kFileSystemInternalTypeEnumStart: 324 case kFileSystemInternalTypeEnumStart:
323 case kFileSystemInternalTypeEnumEnd: 325 case kFileSystemInternalTypeEnumEnd:
324 NOTREACHED(); 326 NOTREACHED();
325 // Fall through. 327 // Fall through.
326 case kFileSystemTypeUnknown: 328 case kFileSystemTypeUnknown:
327 return "Unknown"; 329 return "Unknown";
328 } 330 }
329 NOTREACHED(); 331 NOTREACHED();
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 return base::File::FILE_ERROR_ABORT; 501 return base::File::FILE_ERROR_ABORT;
500 case net::ERR_ADDRESS_INVALID: 502 case net::ERR_ADDRESS_INVALID:
501 case net::ERR_INVALID_URL: 503 case net::ERR_INVALID_URL:
502 return base::File::FILE_ERROR_INVALID_URL; 504 return base::File::FILE_ERROR_INVALID_URL;
503 default: 505 default:
504 return base::File::FILE_ERROR_FAILED; 506 return base::File::FILE_ERROR_FAILED;
505 } 507 }
506 } 508 }
507 509
508 } // namespace storage 510 } // namespace storage
OLDNEW
« no previous file with comments | « storage/common/fileapi/file_system_types.h ('k') | ui/file_manager/file_manager/background/js/volume_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698