Simplify resolution of mojo: URLs.

Primarily, this eliminates the concept of a "local" mojo: URL by explicitly
mapping said mojo: URL onto a file URL.

BUG=401761
R=aa@chromium.org

Review URL: https://codereview.chromium.org/868963002
diff --git a/shell/filename_util.h b/shell/filename_util.h
index 10fa8fe..4dae84a 100644
--- a/shell/filename_util.h
+++ b/shell/filename_util.h
@@ -17,6 +17,10 @@
 // may not be valid if the input is malformed.
 GURL FilePathToFileURL(const base::FilePath& path);
 
+// This URL is going to be treated as a directory. Ensure there is a trailing
+// slash so that GURL.Resolve(...) works correctly.
+GURL AddTrailingSlashIfNeeded(const GURL& url);
+
 }  // namespace mojo
 
 #endif  // SHELL_FILENAME_UTIL_H_