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/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 "googleurl/src/gurl.h" |
15 #include "webkit/base/origin_url_conversions.h" | 15 #include "webkit/base/origin_url_conversions.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"; |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 std::string root = GetFileSystemRootURI(origin_url, | 363 std::string root = GetFileSystemRootURI(origin_url, |
364 kFileSystemTypeExternal).spec(); | 364 kFileSystemTypeExternal).spec(); |
365 if (base::FilePath::FromUTF8Unsafe(mount_name).ReferencesParent()) | 365 if (base::FilePath::FromUTF8Unsafe(mount_name).ReferencesParent()) |
366 return std::string(); | 366 return std::string(); |
367 root.append(mount_name); | 367 root.append(mount_name); |
368 root.append("/"); | 368 root.append("/"); |
369 return root; | 369 return root; |
370 } | 370 } |
371 | 371 |
372 } // namespace fileapi | 372 } // namespace fileapi |
OLD | NEW |