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

Unified Diff: mojo/util/filename_util.h

Issue 1109993002: Adds support for mojo apps to live in their own directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge to trunk and move filename_util to own dir Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/util/BUILD.gn ('k') | mojo/util/filename_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/util/filename_util.h
diff --git a/mojo/runner/filename_util.h b/mojo/util/filename_util.h
similarity index 72%
rename from mojo/runner/filename_util.h
rename to mojo/util/filename_util.h
index 22ae00163319977839b271abb00730696979c0cf..214d4f4a23d6d62c29ce336a55884197f208b572 100644
--- a/mojo/runner/filename_util.h
+++ b/mojo/util/filename_util.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef MOJO_RUNNER_FILENAME_UTIL_H_
-#define MOJO_RUNNER_FILENAME_UTIL_H_
+#ifndef MOJO_UTIL_FILENAME_UTIL_H_
+#define MOJO_UTIL_FILENAME_UTIL_H_
class GURL;
@@ -12,7 +12,7 @@ class FilePath;
}
namespace mojo {
-namespace shell {
+namespace util {
// Given the full path to a file name, creates a file: URL. The returned URL
// may not be valid if the input is malformed.
@@ -22,7 +22,10 @@ GURL FilePathToFileURL(const base::FilePath& path);
// slash so that GURL.Resolve(...) works correctly.
GURL AddTrailingSlashIfNeeded(const GURL& url);
-} // namespace shell
+// Converts a file url to a path
+base::FilePath UrlToFilePath(const GURL& url);
+
+} // namespace util
} // namespace mojo
-#endif // MOJO_RUNNER_FILENAME_UTIL_H_
+#endif // MOJO_UTIL_FILENAME_UTIL_H_
« no previous file with comments | « mojo/util/BUILD.gn ('k') | mojo/util/filename_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698