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

Unified Diff: shell/context.cc

Issue 868283006: Rename MojoURLResolver to URLResolver (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix test Created 5 years, 10 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 | « shell/context.h ('k') | shell/mojo_url_resolver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/context.cc
diff --git a/shell/context.cc b/shell/context.cc
index 21caefa66458125812eff5df794b894f57d52e92..c7e3d02829c98c3112a8b4bd38ee9ccdd4155300 100644
--- a/shell/context.cc
+++ b/shell/context.cc
@@ -105,7 +105,7 @@ void InitContentHandlers(DynamicApplicationLoader* loader,
bool ConfigureURLMappings(base::CommandLine* command_line,
Context* context) {
- MojoURLResolver* resolver = context->mojo_url_resolver();
+ URLResolver* resolver = context->url_resolver();
// Configure the resolution of unknown mojo: URLs.
GURL base_url;
@@ -118,12 +118,12 @@ bool ConfigureURLMappings(base::CommandLine* command_line,
if (!base_url.is_valid())
return false;
- resolver->SetBaseURL(base_url);
+ resolver->SetMojoBaseURL(base_url);
// The network service must be loaded from the filesystem.
// This mapping is done before the command line URL mapping are processed, so
// that it can be overridden.
- resolver->AddCustomMapping(
+ resolver->AddURLMapping(
GURL("mojo:network_service"),
context->ResolveShellFileURL("file:network_service.mojo"));
@@ -141,7 +141,7 @@ bool ConfigureURLMappings(base::CommandLine* command_line,
const GURL to = context->ResolveCommandLineURL(pair.second);
if (!from.is_valid() || !to.is_valid())
return false;
- resolver->AddCustomMapping(from, to);
+ resolver->AddURLMapping(from, to);
}
}
return true;
@@ -271,11 +271,11 @@ void Context::OnApplicationError(const GURL& url) {
}
GURL Context::ResolveURL(const GURL& url) {
- return mojo_url_resolver_.Resolve(url);
+ return url_resolver_.ResolveMojoURL(url);
}
GURL Context::ResolveMappings(const GURL& url) {
- return mojo_url_resolver_.ApplyCustomMappings(url);
+ return url_resolver_.ApplyURLMappings(url);
}
void Context::Run(const GURL& url) {
« no previous file with comments | « shell/context.h ('k') | shell/mojo_url_resolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698