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

Unified Diff: shell/mojo_url_resolver.h

Issue 868963002: Simplify resolution of mojo: URLs. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
Index: shell/mojo_url_resolver.h
diff --git a/shell/mojo_url_resolver.h b/shell/mojo_url_resolver.h
index 1b5acbaa360e8c17683ea97fba053a1f70fbc9d3..c1db8f724184c436ea00e4cc97e3727e9d68c4af 100644
--- a/shell/mojo_url_resolver.h
+++ b/shell/mojo_url_resolver.h
@@ -29,18 +29,10 @@ class MojoURLResolver {
// inserted.
void SetBaseURL(const GURL& base_url);
- // Set the location of applications bundled with the Mojo Shell.
- void SetLocalAppsPath(const base::FilePath& local_apps_path);
-
// Add a custom mapping for a particular "mojo:" URL. If |resolved_url| is
// itself a mojo url normal resolution rules apply.
void AddCustomMapping(const GURL& mojo_url, const GURL& resolved_url);
- // Add a local file mapping for a particular "mojo:" URL. This causes the
- // "mojo:" URL to be resolved to a location where local apps are stored
- // (base::DIR_MODULE unless overriden using SetLocalAppsPath()).
- void AddLocalFileMapping(const GURL& mojo_url);
-
// Resolve the given "mojo:" URL to the URL that should be used to fetch the
// code for the corresponding Mojo App.
GURL Resolve(const GURL& mojo_url) const;
@@ -52,8 +44,6 @@ class MojoURLResolver {
private:
std::map<GURL, GURL> url_map_;
- std::set<GURL> local_file_set_;
- GURL local_apps_url_;
GURL base_url_;
DISALLOW_COPY_AND_ASSIGN(MojoURLResolver);
« shell/context.cc ('K') | « shell/context.cc ('k') | shell/mojo_url_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698