| 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/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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |