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 "content/public/common/user_agent.h" | 5 #include "content/public/common/user_agent.h" |
6 #include "headless/public/headless_browser.h" | 6 #include "headless/public/headless_browser.h" |
7 #include "net/url_request/url_request_context_getter.h" | |
8 | 7 |
9 using Options = headless::HeadlessBrowser::Options; | 8 using Options = headless::HeadlessBrowser::Options; |
10 using Builder = headless::HeadlessBrowser::Options::Builder; | 9 using Builder = headless::HeadlessBrowser::Options::Builder; |
11 | 10 |
12 namespace headless { | 11 namespace headless { |
13 | 12 |
14 // Product name for building the default user agent string. | 13 // Product name for building the default user agent string. |
15 namespace { | 14 namespace { |
16 const char kProductName[] = "HeadlessChrome"; | 15 const char kProductName[] = "HeadlessChrome"; |
17 } | 16 } |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 Builder& Builder::SetProtocolHandlers(ProtocolHandlerMap protocol_handlers) { | 67 Builder& Builder::SetProtocolHandlers(ProtocolHandlerMap protocol_handlers) { |
69 options_.protocol_handlers = std::move(protocol_handlers); | 68 options_.protocol_handlers = std::move(protocol_handlers); |
70 return *this; | 69 return *this; |
71 } | 70 } |
72 | 71 |
73 Options Builder::Build() { | 72 Options Builder::Build() { |
74 return std::move(options_); | 73 return std::move(options_); |
75 } | 74 } |
76 | 75 |
77 } // namespace headless | 76 } // namespace headless |
OLD | NEW |