| 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/common/fileapi/file_system_util.h" | 5 #include "webkit/common/fileapi/file_system_util.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 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" |
| 11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 12 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "googleurl/src/gurl.h" | 14 #include "url/gurl.h" |
| 15 #include "webkit/common/database/database_identifier.h" | 15 #include "webkit/common/database/database_identifier.h" |
| 16 | 16 |
| 17 namespace fileapi { | 17 namespace fileapi { |
| 18 | 18 |
| 19 const char kPersistentDir[] = "/persistent"; | 19 const char kPersistentDir[] = "/persistent"; |
| 20 const char kTemporaryDir[] = "/temporary"; | 20 const char kTemporaryDir[] = "/temporary"; |
| 21 const char kIsolatedDir[] = "/isolated"; | 21 const char kIsolatedDir[] = "/isolated"; |
| 22 const char kExternalDir[] = "/external"; | 22 const char kExternalDir[] = "/external"; |
| 23 const char kTestDir[] = "/test"; | 23 const char kTestDir[] = "/test"; |
| 24 | 24 |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 std::string root = GetFileSystemRootURI(origin_url, | 388 std::string root = GetFileSystemRootURI(origin_url, |
| 389 kFileSystemTypeExternal).spec(); | 389 kFileSystemTypeExternal).spec(); |
| 390 if (base::FilePath::FromUTF8Unsafe(mount_name).ReferencesParent()) | 390 if (base::FilePath::FromUTF8Unsafe(mount_name).ReferencesParent()) |
| 391 return std::string(); | 391 return std::string(); |
| 392 root.append(mount_name); | 392 root.append(mount_name); |
| 393 root.append("/"); | 393 root.append("/"); |
| 394 return root; | 394 return root; |
| 395 } | 395 } |
| 396 | 396 |
| 397 } // namespace fileapi | 397 } // namespace fileapi |
| OLD | NEW |