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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 case kFileSystemTypeDragged: | 232 case kFileSystemTypeDragged: |
233 return "Dragged"; | 233 return "Dragged"; |
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 kFileSystemTypeExternalFullPath: |
| 243 return "ExternalFullPath"; |
242 case kFileSystemTypeUnknown: | 244 case kFileSystemTypeUnknown: |
243 return "Unknown"; | 245 return "Unknown"; |
244 } | 246 } |
245 NOTREACHED(); | 247 NOTREACHED(); |
246 return std::string(); | 248 return std::string(); |
247 } | 249 } |
248 | 250 |
249 std::string FilePathToString(const base::FilePath& file_path) { | 251 std::string FilePathToString(const base::FilePath& file_path) { |
250 #if defined(OS_WIN) | 252 #if defined(OS_WIN) |
251 return UTF16ToUTF8(file_path.value()); | 253 return UTF16ToUTF8(file_path.value()); |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 root.append("/"); | 366 root.append("/"); |
365 } | 367 } |
366 return root; | 368 return root; |
367 } | 369 } |
368 | 370 |
369 bool AreSameFileSystem(const FileSystemURL& url1, const FileSystemURL& url2) { | 371 bool AreSameFileSystem(const FileSystemURL& url1, const FileSystemURL& url2) { |
370 return url1.origin() == url2.origin() && url1.type() == url2.type(); | 372 return url1.origin() == url2.origin() && url1.type() == url2.type(); |
371 } | 373 } |
372 | 374 |
373 } // namespace fileapi | 375 } // namespace fileapi |
OLD | NEW |