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

Unified Diff: headless/test/test_protocol_handler.h

Issue 2748743002: Headless: Strip X-DevTools-Emulate-Network-Conditions-Client-Id (Closed)
Patch Set: Change capitalization Created 3 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/lib/headless_devtools_client_browsertest.cc ('k') | headless/test/test_protocol_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/test/test_protocol_handler.h
diff --git a/headless/test/test_protocol_handler.h b/headless/test/test_protocol_handler.h
index 6fe520e0aae1febe6838f742f4ce379167b8d8fa..20e4f3cec91731019ccdc51d91650d91310842df 100644
--- a/headless/test/test_protocol_handler.h
+++ b/headless/test/test_protocol_handler.h
@@ -5,6 +5,7 @@
#ifndef HEADLESS_TEST_TEST_PROTOCOL_HANDLER_H_
#define HEADLESS_TEST_TEST_PROTOCOL_HANDLER_H_
+#include "net/http/http_request_headers.h"
#include "net/url_request/url_request_job_factory.h"
namespace headless {
@@ -18,7 +19,12 @@ class TestProtocolHandler : public net::URLRequestJobFactory::ProtocolHandler {
net::URLRequest* request,
net::NetworkDelegate* network_delegate) const override;
+ const net::HttpRequestHeaders& last_http_request_headers() const {
+ return last_http_request_headers_;
+ }
+
private:
+ mutable net::HttpRequestHeaders last_http_request_headers_;
std::string body_;
DISALLOW_COPY_AND_ASSIGN(TestProtocolHandler);
« no previous file with comments | « headless/lib/headless_devtools_client_browsertest.cc ('k') | headless/test/test_protocol_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698