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

Unified Diff: headless/public/headless_browser.h

Issue 1912673002: headless: Add support for host resolver mapping (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased again Created 4 years, 8 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/lib/headless_browser_browsertest.cc ('k') | headless/public/headless_browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/headless_browser.h
diff --git a/headless/public/headless_browser.h b/headless/public/headless_browser.h
index b8c4f93d821328c03701eb9c34c1aee3b1fc8466..5e284968762083475fe62aaeb77b5bc4a252494b 100644
--- a/headless/public/headless_browser.h
+++ b/headless/public/headless_browser.h
@@ -86,6 +86,10 @@ struct HeadlessBrowser::Options {
// Optional message pump that overrides the default. Must outlive the browser.
base::MessagePump* message_pump;
+ // Comma-separated list of rules that control how hostnames are mapped. See
+ // chrome::switches::kHostRules for a description for the format.
+ std::string host_resolver_rules;
+
private:
Options(int argc, const char** argv);
};
@@ -100,6 +104,7 @@ class HeadlessBrowser::Options::Builder {
Builder& EnableDevToolsServer(const net::IPEndPoint& endpoint);
Builder& SetMessagePump(base::MessagePump* message_pump);
Builder& SetProxyServer(const net::HostPortPair& proxy_server);
+ Builder& SetHostResolverRules(const std::string& host_resolver_rules);
Options Build();
« no previous file with comments | « headless/lib/headless_browser_browsertest.cc ('k') | headless/public/headless_browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698