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

Unified Diff: mojo/shell/filename_util.h

Issue 640403002: Drop refs to net::EmbeddedTestServer / net::File{Path,URL} utils in mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cast length explicitly Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/shell/dynamic_application_loader_unittest.cc ('k') | mojo/shell/filename_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/filename_util.h
diff --git a/mojo/shell/filename_util.h b/mojo/shell/filename_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..0fd8b8f52d6bf0948ca1b9fa76a4b1034a0d1e2c
--- /dev/null
+++ b/mojo/shell/filename_util.h
@@ -0,0 +1,22 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MOJO_SHELL_FILENAME_UTIL_H_
+#define MOJO_SHELL_FILENAME_UTIL_H_
+
+class GURL;
+
+namespace base {
+class FilePath;
+}
+
+namespace mojo {
+
+// Given the full path to a file name, creates a file: URL. The returned URL
+// may not be valid if the input is malformed.
+GURL FilePathToFileURL(const base::FilePath& path);
+
+} // namespace mojo
+
+#endif // MOJO_SHELL_FILENAME_UTIL_H_
« no previous file with comments | « mojo/shell/dynamic_application_loader_unittest.cc ('k') | mojo/shell/filename_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698