| 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/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 case kFileSystemTypeIsolated: | 169 case kFileSystemTypeIsolated: |
| 170 return "Isolated"; | 170 return "Isolated"; |
| 171 case kFileSystemTypeExternal: | 171 case kFileSystemTypeExternal: |
| 172 return "External"; | 172 return "External"; |
| 173 case kFileSystemTypeTest: | 173 case kFileSystemTypeTest: |
| 174 return "Test"; | 174 return "Test"; |
| 175 case kFileSystemTypeNativeLocal: | 175 case kFileSystemTypeNativeLocal: |
| 176 return "NativeLocal"; | 176 return "NativeLocal"; |
| 177 case kFileSystemTypeRestrictedNativeLocal: | 177 case kFileSystemTypeRestrictedNativeLocal: |
| 178 return "RestrictedNativeLocal"; | 178 return "RestrictedNativeLocal"; |
| 179 case kFileSystemTypeIsolatedNativeLocal: |
| 180 return "NativeLocal"; |
| 179 case kFileSystemTypeDragged: | 181 case kFileSystemTypeDragged: |
| 180 return "Dragged"; | 182 return "Dragged"; |
| 181 case kFileSystemTypeNativeMedia: | 183 case kFileSystemTypeNativeMedia: |
| 182 return "NativeMedia"; | 184 return "NativeMedia"; |
| 183 case kFileSystemTypeDeviceMedia: | 185 case kFileSystemTypeDeviceMedia: |
| 184 return "DeviceMedia"; | 186 return "DeviceMedia"; |
| 185 case kFileSystemTypeDrive: | 187 case kFileSystemTypeDrive: |
| 186 return "Drive"; | 188 return "Drive"; |
| 187 case kFileSystemTypeSyncable: | 189 case kFileSystemTypeSyncable: |
| 188 return "Syncable"; | 190 return "Syncable"; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 269 |
| 268 *filesystem_id = filesystem_name.substr(pos + start_token.length(), | 270 *filesystem_id = filesystem_name.substr(pos + start_token.length(), |
| 269 std::string::npos); | 271 std::string::npos); |
| 270 if (filesystem_id->empty()) | 272 if (filesystem_id->empty()) |
| 271 return false; | 273 return false; |
| 272 | 274 |
| 273 return true; | 275 return true; |
| 274 } | 276 } |
| 275 | 277 |
| 276 } // namespace fileapi | 278 } // namespace fileapi |
| OLD | NEW |