Index: mojo/shell/background/background_shell.h |
diff --git a/mojo/shell/background/background_shell.h b/mojo/shell/background/background_shell.h |
index 7af37140c7338538485c1250d40a86fbe7a5e90a..070b5b1ba55d2a8e42551989b7b3122d345aeda6 100644 |
--- a/mojo/shell/background/background_shell.h |
+++ b/mojo/shell/background/background_shell.h |
@@ -21,6 +21,7 @@ namespace mojo { |
namespace shell { |
class NativeRunnerDelegate; |
+class Shell; |
// BackgroundShell starts up the mojo shell on a background thread, and |
// destroys the thread in the destructor. Once created use CreateApplication() |
@@ -34,6 +35,8 @@ class BackgroundShell { |
NativeRunnerDelegate* native_runner_delegate = nullptr; |
scoped_ptr<catalog::Store> catalog_store; |
+ // If true the edk is initialized. |
+ bool init_edk = true; |
}; |
BackgroundShell(); |
@@ -47,6 +50,11 @@ class BackgroundShell { |
mojom::ShellClientRequest CreateShellClientRequest( |
const std::string& name); |
+ // Use to do processing on the thread running the shell. The callback is |
+ // supplied a pointer to the Shell. The callback does *not* own the Shell. |
+ using ShellThreadCallback = base::Callback<void(Shell*)>; |
+ void ExecuteOnShellThread(const ShellThreadCallback& callback); |
+ |
private: |
class MojoThread; |