| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/child/webfileutilities_impl.h" | 5 #include "content/child/webfileutilities_impl.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | |
| 8 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/files/file_util.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "content/child/file_info_util.h" | 10 #include "content/child/file_info_util.h" |
| 11 #include "net/base/file_stream.h" | 11 #include "net/base/file_stream.h" |
| 12 #include "net/base/filename_util.h" | 12 #include "net/base/filename_util.h" |
| 13 #include "third_party/WebKit/public/platform/WebFileInfo.h" | 13 #include "third_party/WebKit/public/platform/WebFileInfo.h" |
| 14 #include "third_party/WebKit/public/platform/WebString.h" | 14 #include "third_party/WebKit/public/platform/WebString.h" |
| 15 #include "third_party/WebKit/public/platform/WebURL.h" | 15 #include "third_party/WebKit/public/platform/WebURL.h" |
| 16 | 16 |
| 17 using blink::WebString; | 17 using blink::WebString; |
| 18 | 18 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 47 | 47 |
| 48 WebString WebFileUtilitiesImpl::baseName(const WebString& path) { | 48 WebString WebFileUtilitiesImpl::baseName(const WebString& path) { |
| 49 return base::FilePath::FromUTF16Unsafe(path).BaseName().AsUTF16Unsafe(); | 49 return base::FilePath::FromUTF16Unsafe(path).BaseName().AsUTF16Unsafe(); |
| 50 } | 50 } |
| 51 | 51 |
| 52 blink::WebURL WebFileUtilitiesImpl::filePathToURL(const WebString& path) { | 52 blink::WebURL WebFileUtilitiesImpl::filePathToURL(const WebString& path) { |
| 53 return net::FilePathToFileURL(base::FilePath::FromUTF16Unsafe(path)); | 53 return net::FilePathToFileURL(base::FilePath::FromUTF16Unsafe(path)); |
| 54 } | 54 } |
| 55 | 55 |
| 56 } // namespace content | 56 } // namespace content |
| OLD | NEW |