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

Unified Diff: shell/context.h

Issue 868963002: Simplify resolution of mojo: URLs. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Name fix 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
« no previous file with comments | « shell/android/mojo_main.cc ('k') | shell/context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/context.h
diff --git a/shell/context.h b/shell/context.h
index b20b3fa85e6d18dcacfffc0f346b934f2cda712d..74abb6297a78789892751b2855c3289f6caadcdb 100644
--- a/shell/context.h
+++ b/shell/context.h
@@ -25,6 +25,9 @@ class Context : ApplicationManager::Delegate {
Context();
~Context() override;
+ void SetShellFileRoot(const base::FilePath& path);
Aaron Boodman 2015/01/27 00:37:13 Maybe a better name would be: SetMojoURLRoot?
Nick Bray (chromium) 2015/01/27 01:44:35 I'll comment this, but the fact it is the _file_ r
+ GURL ResolveShellFileURL(const std::string& path);
Aaron Boodman 2015/01/27 00:37:13 These two methods need comments.
Nick Bray (chromium) 2015/01/27 01:44:35 Done. <troll>But you could say that's against the
Aaron Boodman 2015/01/27 07:29:54 True, but the reason I brought this up in particul
Nick Bray (chromium) 2015/01/27 16:36:25 More comments are always better, particularly when
+
static void EnsureEmbedderIsInitialized();
bool Init();
@@ -50,6 +53,7 @@ class Context : ApplicationManager::Delegate {
scoped_ptr<ExternalApplicationListener> listener_;
ApplicationManager application_manager_;
MojoURLResolver mojo_url_resolver_;
+ GURL shell_file_root_;
DISALLOW_COPY_AND_ASSIGN(Context);
};
« no previous file with comments | « shell/android/mojo_main.cc ('k') | shell/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698