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

Unified Diff: headless/public/headless_browser.cc

Issue 1912673002: headless: Add support for host resolver mapping (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: headless/public/headless_browser.cc
diff --git a/headless/public/headless_browser.cc b/headless/public/headless_browser.cc
index 9f166b40a7033ad863b01e23e0a653311a3b7b82..95fe8b69fca9b2daf504bb7ce3dbaf1814bdd8a2 100644
--- a/headless/public/headless_browser.cc
+++ b/headless/public/headless_browser.cc
@@ -58,6 +58,11 @@ Builder& Builder::SetSingleProcessMode(bool single_process_mode) {
return *this;
}
+Builder& Builder::SetHostResolverRules(const std::string& host_resolver_rules) {
+ options_.host_resolver_rules = host_resolver_rules;
+ return *this;
+}
+
Options Builder::Build() {
return options_;
}
« headless/lib/headless_browser_browsertest.cc ('K') | « headless/public/headless_browser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698