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

Unified Diff: headless/public/headless_browser.h

Issue 2026253002: Revert of headless: Allow protocol handler customization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« 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 c1f5b4d0974d9bf7d7ca58c63ef9fb34b7695f33..4b360575148edfe0ba214270d6921990ce3d9ffe 100644
--- a/headless/public/headless_browser.h
+++ b/headless/public/headless_browser.h
@@ -7,7 +7,6 @@
#include <memory>
#include <string>
-#include <unordered_map>
#include "base/callback.h"
#include "base/macros.h"
@@ -15,7 +14,6 @@
#include "headless/public/headless_export.h"
#include "net/base/host_port_pair.h"
#include "net/base/ip_endpoint.h"
-#include "net/url_request/url_request_job_factory.h"
namespace base {
class MessagePump;
@@ -63,10 +61,6 @@
DISALLOW_COPY_AND_ASSIGN(HeadlessBrowser);
};
-using ProtocolHandlerMap = std::unordered_map<
- std::string,
- std::unique_ptr<net::URLRequestJobFactory::ProtocolHandler>>;
-
// Embedding API overrides for the headless browser.
struct HeadlessBrowser::Options {
class Builder;
@@ -103,10 +97,6 @@
// web content, which can be a security risk.
bool single_process_mode;
- // Custom network protocol handlers. These can be used to override URL
- // fetching for different network schemes.
- ProtocolHandlerMap protocol_handlers;
-
private:
Options(int argc, const char** argv);
@@ -125,7 +115,6 @@
Builder& SetProxyServer(const net::HostPortPair& proxy_server);
Builder& SetHostResolverRules(const std::string& host_resolver_rules);
Builder& SetSingleProcessMode(bool single_process_mode);
- Builder& SetProtocolHandlers(ProtocolHandlerMap protocol_handlers);
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