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

Unified Diff: headless/public/headless_browser.cc

Issue 2024973002: headless: Allow protocol handler customization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 4 years, 7 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 07d263641ac90fdd82feffc9131a158c89593088..0b4e17f1e7e14143fadfae104a915ae9225ef286 100644
--- a/headless/public/headless_browser.cc
+++ b/headless/public/headless_browser.cc
@@ -65,6 +65,11 @@ Builder& Builder::SetSingleProcessMode(bool single_process_mode) {
return *this;
}
+Builder& Builder::SetProtocolHandlers(ProtocolHandlerMap protocol_handlers) {
+ options_.protocol_handlers = std::move(protocol_handlers);
+ return *this;
+}
+
Options Builder::Build() {
return std::move(options_);
}

Powered by Google App Engine
This is Rietveld 408576698