Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Unified Diff: headless/public/headless_browser.cc

Issue 1781193004: headless: Make it possible to configure an HTTP proxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « headless/public/headless_browser.h ('k') | headless/public/headless_web_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/headless_browser.cc
diff --git a/headless/public/headless_browser.cc b/headless/public/headless_browser.cc
index 550d7169c4cb87af19c017449a9679b7a4911fac..abadc18b9875f73e620c4914bf8df8bdabd7bb16 100644
--- a/headless/public/headless_browser.cc
+++ b/headless/public/headless_browser.cc
@@ -26,6 +26,8 @@ Options::~Options() {}
Builder::Builder(int argc, const char** argv) : options_(argc, argv) {}
+Builder::Builder() : options_(0, nullptr) {}
+
Builder::~Builder() {}
Builder& Builder::SetUserAgent(const std::string& user_agent) {
@@ -43,6 +45,11 @@ Builder& Builder::SetMessagePump(base::MessagePump* message_pump) {
return *this;
}
+Builder& Builder::SetProxyServer(const net::HostPortPair& proxy_server) {
+ options_.proxy_server = proxy_server;
+ return *this;
+}
+
Options Builder::Build() {
return options_;
}
« no previous file with comments | « headless/public/headless_browser.h ('k') | headless/public/headless_web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698