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

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

Issue 14493007: Add Transient FileSystem which goes away after its snapsot file is gone (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/fileapi/file_system_types.h ('k') | webkit/fileapi/isolated_mount_point_provider.h » ('j') | 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/fileapi/file_system_util.h" 5 #include "webkit/fileapi/file_system_util.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 case kFileSystemTypeNativeMedia: 234 case kFileSystemTypeNativeMedia:
235 return "NativeMedia"; 235 return "NativeMedia";
236 case kFileSystemTypeDeviceMedia: 236 case kFileSystemTypeDeviceMedia:
237 return "DeviceMedia"; 237 return "DeviceMedia";
238 case kFileSystemTypeDrive: 238 case kFileSystemTypeDrive:
239 return "Drive"; 239 return "Drive";
240 case kFileSystemTypeSyncable: 240 case kFileSystemTypeSyncable:
241 return "Syncable"; 241 return "Syncable";
242 case kFileSystemTypeNativeForPlatformApp: 242 case kFileSystemTypeNativeForPlatformApp:
243 return "NativeForPlatformApp"; 243 return "NativeForPlatformApp";
244 case kFileSystemTypeForTransientFile:
245 return "TransientFile";
244 case kFileSystemInternalTypeEnumStart: 246 case kFileSystemInternalTypeEnumStart:
245 case kFileSystemInternalTypeEnumEnd: 247 case kFileSystemInternalTypeEnumEnd:
246 NOTREACHED(); 248 NOTREACHED();
247 // Fall through. 249 // Fall through.
248 case kFileSystemTypeUnknown: 250 case kFileSystemTypeUnknown:
249 return "Unknown"; 251 return "Unknown";
250 } 252 }
251 NOTREACHED(); 253 NOTREACHED();
252 return std::string(); 254 return std::string();
253 } 255 }
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 root.append("/"); 373 root.append("/");
372 } 374 }
373 return root; 375 return root;
374 } 376 }
375 377
376 bool AreSameFileSystem(const FileSystemURL& url1, const FileSystemURL& url2) { 378 bool AreSameFileSystem(const FileSystemURL& url1, const FileSystemURL& url2) {
377 return url1.origin() == url2.origin() && url1.type() == url2.type(); 379 return url1.origin() == url2.origin() && url1.type() == url2.type();
378 } 380 }
379 381
380 } // namespace fileapi 382 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_types.h ('k') | webkit/fileapi/isolated_mount_point_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698