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" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
15 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h" | 15 #include "third_party/WebKit/public/platform/WebCString.h" |
16 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 16 #include "third_party/WebKit/public/platform/WebString.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
18 #include "webkit/base/origin_url_conversions.h" | 18 #include "webkit/base/origin_url_conversions.h" |
19 #include "webkit/fileapi/file_system_url.h" | 19 #include "webkit/fileapi/file_system_url.h" |
20 | 20 |
21 namespace fileapi { | 21 namespace fileapi { |
22 | 22 |
23 const char kPersistentDir[] = "/persistent"; | 23 const char kPersistentDir[] = "/persistent"; |
24 const char kTemporaryDir[] = "/temporary"; | 24 const char kTemporaryDir[] = "/temporary"; |
25 const char kIsolatedDir[] = "/isolated"; | 25 const char kIsolatedDir[] = "/isolated"; |
26 const char kExternalDir[] = "/external"; | 26 const char kExternalDir[] = "/external"; |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 root.append("/"); | 355 root.append("/"); |
356 } | 356 } |
357 return root; | 357 return root; |
358 } | 358 } |
359 | 359 |
360 bool AreSameFileSystem(const FileSystemURL& url1, const FileSystemURL& url2) { | 360 bool AreSameFileSystem(const FileSystemURL& url1, const FileSystemURL& url2) { |
361 return url1.origin() == url2.origin() && url1.type() == url2.type(); | 361 return url1.origin() == url2.origin() && url1.type() == url2.type(); |
362 } | 362 } |
363 | 363 |
364 } // namespace fileapi | 364 } // namespace fileapi |
OLD | NEW |