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 "headless/lib/browser/headless_browser_context_options.h" | 5 #include "headless/lib/browser/headless_browser_context_options.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 namespace headless { | 10 namespace headless { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 const ProtocolHandlerMap& HeadlessBrowserContextOptions::protocol_handlers() | 64 const ProtocolHandlerMap& HeadlessBrowserContextOptions::protocol_handlers() |
65 const { | 65 const { |
66 return protocol_handlers_; | 66 return protocol_handlers_; |
67 } | 67 } |
68 | 68 |
69 ProtocolHandlerMap HeadlessBrowserContextOptions::TakeProtocolHandlers() { | 69 ProtocolHandlerMap HeadlessBrowserContextOptions::TakeProtocolHandlers() { |
70 return std::move(protocol_handlers_); | 70 return std::move(protocol_handlers_); |
71 } | 71 } |
72 | 72 |
| 73 const base::Callback<void(WebPreferences*)>& |
| 74 HeadlessBrowserContextOptions::override_web_preferences_callback() const { |
| 75 return override_web_preferences_callback_; |
| 76 } |
| 77 |
73 } // namespace headless | 78 } // namespace headless |
OLD | NEW |