| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <iostream> | 5 #include <iostream> |
| 6 #include <memory> | 6 #include <memory> |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 return EXIT_FAILURE; | 327 return EXIT_FAILURE; |
| 328 } | 328 } |
| 329 builder.SetProxyServer(parsed_proxy_server); | 329 builder.SetProxyServer(parsed_proxy_server); |
| 330 } | 330 } |
| 331 | 331 |
| 332 if (command_line.HasSwitch(switches::kHostResolverRules)) { | 332 if (command_line.HasSwitch(switches::kHostResolverRules)) { |
| 333 builder.SetHostResolverRules( | 333 builder.SetHostResolverRules( |
| 334 command_line.GetSwitchValueASCII(switches::kHostResolverRules)); | 334 command_line.GetSwitchValueASCII(switches::kHostResolverRules)); |
| 335 } | 335 } |
| 336 | 336 |
| 337 if (command_line.HasSwitch(headless::switches::kUseGL)) { |
| 338 builder.SetGLImplementation( |
| 339 command_line.GetSwitchValueASCII(headless::switches::kUseGL)); |
| 340 } |
| 341 |
| 337 return HeadlessBrowserMain( | 342 return HeadlessBrowserMain( |
| 338 builder.Build(), | 343 builder.Build(), |
| 339 base::Bind(&HeadlessShell::OnStart, base::Unretained(&shell))); | 344 base::Bind(&HeadlessShell::OnStart, base::Unretained(&shell))); |
| 340 } | 345 } |
| OLD | NEW |