| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "headless/public/headless_browser.h" | 5 #include "headless/public/headless_browser.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "content/public/common/user_agent.h" | 9 #include "content/public/common/user_agent.h" |
| 10 | 10 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 Builder& Builder::SetWindowSize(const gfx::Size& window_size) { | 95 Builder& Builder::SetWindowSize(const gfx::Size& window_size) { |
| 96 options_.window_size = window_size; | 96 options_.window_size = window_size; |
| 97 return *this; | 97 return *this; |
| 98 } | 98 } |
| 99 | 99 |
| 100 Builder& Builder::SetIncognitoMode(bool incognito_mode) { | 100 Builder& Builder::SetIncognitoMode(bool incognito_mode) { |
| 101 options_.incognito_mode = incognito_mode; | 101 options_.incognito_mode = incognito_mode; |
| 102 return *this; | 102 return *this; |
| 103 } | 103 } |
| 104 | 104 |
| 105 Builder& Builder::SetOverrideWebPreferencesCallback( |
| 106 base::Callback<void(WebPreferences*)> callback) { |
| 107 options_.override_web_preferences_callback = callback; |
| 108 return *this; |
| 109 } |
| 110 |
| 105 Options Builder::Build() { | 111 Options Builder::Build() { |
| 106 return std::move(options_); | 112 return std::move(options_); |
| 107 } | 113 } |
| 108 | 114 |
| 109 } // namespace headless | 115 } // namespace headless |
| OLD | NEW |