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 kFileSystemTypeNativeForPlatformApp: |
| 243 return "NativeForPlatformApp"; |
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 root.append("/"); | 367 root.append("/"); |
366 } | 368 } |
367 return root; | 369 return root; |
368 } | 370 } |
369 | 371 |
370 bool AreSameFileSystem(const FileSystemURL& url1, const FileSystemURL& url2) { | 372 bool AreSameFileSystem(const FileSystemURL& url1, const FileSystemURL& url2) { |
371 return url1.origin() == url2.origin() && url1.type() == url2.type(); | 373 return url1.origin() == url2.origin() && url1.type() == url2.type(); |
372 } | 374 } |
373 | 375 |
374 } // namespace fileapi | 376 } // namespace fileapi |
OLD | NEW |