Chromium Code Reviews| 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/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
|
tony
2013/03/29 19:57:43
Nit: I think strings/sys_string_conversions.h shou
| |
| 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/Source/Platform/chromium/public/WebCString.h" |
| 16 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 16 #include "third_party/WebKit/Source/Platform/chromium/public/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/fileapi/file_system_url.h" | 18 #include "webkit/fileapi/file_system_url.h" |
| 19 | 19 |
| 20 namespace fileapi { | 20 namespace fileapi { |
| 21 | 21 |
| 22 const char kPersistentDir[] = "/persistent"; | 22 const char kPersistentDir[] = "/persistent"; |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 367 root.append("/"); | 367 root.append("/"); |
| 368 } | 368 } |
| 369 return root; | 369 return root; |
| 370 } | 370 } |
| 371 | 371 |
| 372 bool AreSameFileSystem(const FileSystemURL& url1, const FileSystemURL& url2) { | 372 bool AreSameFileSystem(const FileSystemURL& url1, const FileSystemURL& url2) { |
| 373 return url1.origin() == url2.origin() && url1.type() == url2.type(); | 373 return url1.origin() == url2.origin() && url1.type() == url2.type(); |
| 374 } | 374 } |
| 375 | 375 |
| 376 } // namespace fileapi | 376 } // namespace fileapi |
| OLD | NEW |