| 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 18 matching lines...) Expand all Loading... |
| 29 const std::string& product_name_and_version() const; | 29 const std::string& product_name_and_version() const; |
| 30 const std::string& user_agent() const; | 30 const std::string& user_agent() const; |
| 31 | 31 |
| 32 // See HeadlessBrowser::Options::proxy_server. | 32 // See HeadlessBrowser::Options::proxy_server. |
| 33 const net::HostPortPair& proxy_server() const; | 33 const net::HostPortPair& proxy_server() const; |
| 34 | 34 |
| 35 // See HeadlessBrowser::Options::host_resolver_rules. | 35 // See HeadlessBrowser::Options::host_resolver_rules. |
| 36 const std::string& host_resolver_rules() const; | 36 const std::string& host_resolver_rules() const; |
| 37 | 37 |
| 38 const gfx::Size& window_size() const; | 38 const gfx::Size& window_size() const; |
| 39 const gfx::Size& screen_size() const; |
| 39 | 40 |
| 40 // See HeadlessBrowser::Options::user_data_dir. | 41 // See HeadlessBrowser::Options::user_data_dir. |
| 41 const base::FilePath& user_data_dir() const; | 42 const base::FilePath& user_data_dir() const; |
| 42 | 43 |
| 43 // Set HeadlessBrowser::Options::incognito_mode. | 44 // Set HeadlessBrowser::Options::incognito_mode. |
| 44 bool incognito_mode() const; | 45 bool incognito_mode() const; |
| 45 | 46 |
| 46 // Custom network protocol handlers. These can be used to override URL | 47 // Custom network protocol handlers. These can be used to override URL |
| 47 // fetching for different network schemes. | 48 // fetching for different network schemes. |
| 48 const ProtocolHandlerMap& protocol_handlers() const; | 49 const ProtocolHandlerMap& protocol_handlers() const; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 71 override_web_preferences_callback_; | 72 override_web_preferences_callback_; |
| 72 | 73 |
| 73 ProtocolHandlerMap protocol_handlers_; | 74 ProtocolHandlerMap protocol_handlers_; |
| 74 | 75 |
| 75 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserContextOptions); | 76 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserContextOptions); |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 } // namespace headless | 79 } // namespace headless |
| 79 | 80 |
| 80 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_OPTIONS_H_ | 81 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_CONTEXT_OPTIONS_H_ |
| OLD | NEW |