| 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 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_OPTIONS_H_ | 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_OPTIONS_H_ |
| 6 #define HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_OPTIONS_H_ | 6 #define HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_OPTIONS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 explicit HeadlessBrowserContextOptions(HeadlessBrowser::Options*); | 59 explicit HeadlessBrowserContextOptions(HeadlessBrowser::Options*); |
| 60 | 60 |
| 61 HeadlessBrowser::Options* browser_options_; | 61 HeadlessBrowser::Options* browser_options_; |
| 62 | 62 |
| 63 base::Optional<std::string> user_agent_; | 63 base::Optional<std::string> user_agent_; |
| 64 base::Optional<net::HostPortPair> proxy_server_; | 64 base::Optional<net::HostPortPair> proxy_server_; |
| 65 base::Optional<std::string> host_resolver_rules_; | 65 base::Optional<std::string> host_resolver_rules_; |
| 66 base::Optional<gfx::Size> window_size_; | 66 base::Optional<gfx::Size> window_size_; |
| 67 base::Optional<base::FilePath> user_data_dir_; | 67 base::Optional<base::FilePath> user_data_dir_; |
| 68 base::Optional<bool> incognito_mode_; | 68 base::Optional<bool> incognito_mode_; |
| 69 base::Optional<base::Callback<void(WebPreferences*)>> |
| 70 override_web_preferences_callback_; |
| 69 | 71 |
| 70 ProtocolHandlerMap protocol_handlers_; | 72 ProtocolHandlerMap protocol_handlers_; |
| 71 base::Callback<void(WebPreferences*)> override_web_preferences_callback_; | |
| 72 | 73 |
| 73 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserContextOptions); | 74 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserContextOptions); |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 } // namespace headless | 77 } // namespace headless |
| 77 | 78 |
| 78 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_OPTIONS_H_ | 79 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_OPTIONS_H_ |
| OLD | NEW |