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

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

Issue 192573002: [fsp] Introduce file_system_provider::Service class for the FileSystemProvider API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplified. Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « webkit/common/fileapi/file_system_types.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 case kFileSystemTypeSyncableForInternalSync: 310 case kFileSystemTypeSyncableForInternalSync:
311 return "Syncable"; 311 return "Syncable";
312 case kFileSystemTypeNativeForPlatformApp: 312 case kFileSystemTypeNativeForPlatformApp:
313 return "NativeForPlatformApp"; 313 return "NativeForPlatformApp";
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:
321 return "Provided";
320 case kFileSystemInternalTypeEnumStart: 322 case kFileSystemInternalTypeEnumStart:
321 case kFileSystemInternalTypeEnumEnd: 323 case kFileSystemInternalTypeEnumEnd:
322 NOTREACHED(); 324 NOTREACHED();
323 // Fall through. 325 // Fall through.
324 case kFileSystemTypeUnknown: 326 case kFileSystemTypeUnknown:
325 return "Unknown"; 327 return "Unknown";
326 } 328 }
327 NOTREACHED(); 329 NOTREACHED();
328 return std::string(); 330 return std::string();
329 } 331 }
(...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 fileapi 510 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/common/fileapi/file_system_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698