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

Unified Diff: mojo/shell/context.h

Issue 305013015: Mojo: (Mostly) factor out command-line switches from the shell's load code path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/android/mojo_main.cc ('k') | mojo/shell/desktop/mojo_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/context.h
diff --git a/mojo/shell/context.h b/mojo/shell/context.h
index c9acdc4fb15030a1e461c3e89171f86e930daf5f..599a199b9f1338b6e2a2a7904530e0c70a4d6af6 100644
--- a/mojo/shell/context.h
+++ b/mojo/shell/context.h
@@ -5,6 +5,8 @@
#ifndef MOJO_SHELL_CONTEXT_H_
#define MOJO_SHELL_CONTEXT_H_
+#include <string>
+
#include "mojo/service_manager/service_manager.h"
#include "mojo/shell/keep_alive.h"
#include "mojo/shell/loader.h"
@@ -29,6 +31,11 @@ class Context {
Context();
~Context();
+ const std::string& mojo_origin() const { return mojo_origin_; }
+ void set_mojo_origin(const std::string& mojo_origin) {
+ mojo_origin_ = mojo_origin;
+ }
+
TaskRunners* task_runners() { return &task_runners_; }
Storage* storage() { return &storage_; }
Loader* loader() { return &loader_; }
@@ -42,6 +49,9 @@ class Context {
private:
class NativeViewportServiceLoader;
+
+ std::string mojo_origin_;
+
TaskRunners task_runners_;
Storage storage_;
Loader loader_;
« no previous file with comments | « mojo/shell/android/mojo_main.cc ('k') | mojo/shell/desktop/mojo_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698