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

Unified Diff: mojo/shell/background/background_shell.h

Issue 1806353003: Adds option to run browser tests in mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 9 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
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;

Powered by Google App Engine
This is Rietveld 408576698