diff options
author | sky <sky@chromium.org> | 2016-02-19 15:17:21 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-19 23:18:47 +0000 |
commit | 730034908c8b53bdcb6faaeb50b234bb23825091 (patch) | |
tree | f805353138348a1f9a4f6ed459889b4ae6e5bf4a /mojo/shell/background/background_shell.h | |
parent | c286900cc4499a48baab0d86dd96edbbe5fb1eff (diff) | |
download | chromium_src-730034908c8b53bdcb6faaeb50b234bb23825091.zip chromium_src-730034908c8b53bdcb6faaeb50b234bb23825091.tar.gz chromium_src-730034908c8b53bdcb6faaeb50b234bb23825091.tar.bz2 |
Adds back qualifier support to the shell
This also adds the ability to add command line switches to child
processes.
BUG=581539
TEST=none
R=ben@chromium.org
Review URL: https://codereview.chromium.org/1714183003
Cr-Commit-Position: refs/heads/master@{#376567}
Diffstat (limited to 'mojo/shell/background/background_shell.h')
-rw-r--r-- | mojo/shell/background/background_shell.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mojo/shell/background/background_shell.h b/mojo/shell/background/background_shell.h index e2163f4..d1e9c41 100644 --- a/mojo/shell/background/background_shell.h +++ b/mojo/shell/background/background_shell.h @@ -5,6 +5,8 @@ #ifndef MOJO_SHELL_BACKGROUND_BACKGROUND_SHELL_H_ #define MOJO_SHELL_BACKGROUND_BACKGROUND_SHELL_H_ +#include <vector> + #include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "mojo/public/cpp/bindings/interface_request.h" @@ -15,6 +17,8 @@ class GURL; namespace mojo { namespace shell { +struct CommandLineSwitch; + // BackgroundShell starts up the mojo shell on a background thread, and // destroys the thread in the destructor. Once created use CreateApplication() // to obtain an InterfaceRequest for the Application. The InterfaceRequest can @@ -24,7 +28,9 @@ class BackgroundShell { BackgroundShell(); ~BackgroundShell(); - void Init(); + // Starts the background shell. |command_line_switches| are additional + // switches applied to any processes spawned by this call. + void Init(const std::vector<CommandLineSwitch>& command_line_switches); // Obtains an InterfaceRequest for the specified url. InterfaceRequest<mojom::ShellClient> CreateShellClientRequest( |