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

Unified Diff: mojo/shell/mojo_url_resolver.h

Issue 397733003: mojo: kill app_thread before unloading main app library and add tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: also service_manager_unittests Created 6 years, 5 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/in_process_dynamic_service_runner.cc ('k') | mojo/shell/mojo_url_resolver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/mojo_url_resolver.h
diff --git a/mojo/shell/mojo_url_resolver.h b/mojo/shell/mojo_url_resolver.h
index d232a40703503105c5b32eba923f6f29ddba8600..c82845c642c2149762e8d786f0673989cbf8eb8b 100644
--- a/mojo/shell/mojo_url_resolver.h
+++ b/mojo/shell/mojo_url_resolver.h
@@ -22,9 +22,10 @@ class MojoURLResolver {
~MojoURLResolver();
// If specified, then unknown "mojo:" URLs will be resolved relative to this
- // origin. That is, the portion after the colon will be appeneded to origin
- // with platform-specific shared library prefix and suffix inserted.
- void set_origin(const std::string& origin) { origin_ = origin; }
+ // base URL. That is, the portion after the colon will be appeneded to
+ // |base_url| with platform-specific shared library prefix and suffix
+ // inserted.
+ void SetBaseURL(const GURL& base_url);
// Add a custom mapping for a particular "mojo:" URL.
void AddCustomMapping(const GURL& mojo_url, const GURL& resolved_url);
@@ -40,7 +41,7 @@ class MojoURLResolver {
private:
std::map<GURL, GURL> url_map_;
std::set<GURL> local_file_set_;
- std::string origin_;
+ GURL base_url_;
};
} // namespace shell
« no previous file with comments | « mojo/shell/in_process_dynamic_service_runner.cc ('k') | mojo/shell/mojo_url_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698