Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(677)

Side by Side Diff: content/child/webfileutilities_impl.cc

Issue 220253002: Add net/base/filename_util.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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" 7 #include "base/file_util.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/child/blink_glue.h" 10 #include "content/child/blink_glue.h"
11 #include "net/base/file_stream.h" 11 #include "net/base/file_stream.h"
12 #include "net/base/net_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
19 namespace content { 19 namespace content {
20 20
21 WebFileUtilitiesImpl::WebFileUtilitiesImpl() 21 WebFileUtilitiesImpl::WebFileUtilitiesImpl()
22 : sandbox_enabled_(true) { 22 : sandbox_enabled_(true) {
(...skipping 24 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698