Chromium Code Reviews| Index: headless/public/headless_browser.cc |
| diff --git a/headless/public/headless_browser.cc b/headless/public/headless_browser.cc |
| index caa24e794d9a5e553e756bf59c315659c33c8fca..add2439b7afa2929e8e3b5bada83ca662ee16b43 100644 |
| --- a/headless/public/headless_browser.cc |
| +++ b/headless/public/headless_browser.cc |
| @@ -9,6 +9,10 @@ |
| #include "content/public/common/user_agent.h" |
| #include "headless/public/version.h" |
| +#if defined(OS_WIN) |
| +#include "sandbox/win/src/sandbox_types.h" |
| +#endif |
| + |
| using Options = headless::HeadlessBrowser::Options; |
| using Builder = headless::HeadlessBrowser::Options::Builder; |
| @@ -100,6 +104,18 @@ Builder& Builder::AddMojoServiceName(const std::string& mojo_service_name) { |
| return *this; |
| } |
| +#if defined(OS_WIN) |
| +Builder& Builder::SetInstance(HINSTANCE instance) { |
| + options_.instance = instance; |
| + return *this; |
| +} |
| + |
| +Builder& Builder::SetSandboxInfo(sandbox::SandboxInterfaceInfo* sandbox_info) { |
| + options_.sandbox_info = sandbox_info; |
| + return *this; |
| +} |
| +#endif |
|
Sami
2017/03/22 19:46:25
Please add // defined(OS_WIN) for long #ifdef blo
dvallet
2017/03/27 05:59:51
Done
|
| + |
| Builder& Builder::SetUserDataDir(const base::FilePath& user_data_dir) { |
| options_.user_data_dir = user_data_dir; |
| return *this; |