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

Unified Diff: net/http/http_basic_state.h

Issue 2299703003: Re-land: Only allow HTTP/0.9 support on default ports. (Closed)
Patch Set: Fix test Created 4 years, 4 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 | « components/policy/resources/policy_templates.json ('k') | net/http/http_basic_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_basic_state.h
diff --git a/net/http/http_basic_state.h b/net/http/http_basic_state.h
index d9d66f6ffc99ad632c26391e412f560b348d5b8c..f8f1ca58e20e6c5aa78c1810d2f26cf4c03e8d50 100644
--- a/net/http/http_basic_state.h
+++ b/net/http/http_basic_state.h
@@ -28,7 +28,8 @@ struct HttpRequestInfo;
class NET_EXPORT_PRIVATE HttpBasicState {
public:
HttpBasicState(std::unique_ptr<ClientSocketHandle> connection,
- bool using_proxy);
+ bool using_proxy,
+ bool http_09_on_non_default_ports_enabled);
~HttpBasicState();
// Initialize() must be called before using any of the other methods.
@@ -41,6 +42,10 @@ class NET_EXPORT_PRIVATE HttpBasicState {
bool using_proxy() const { return using_proxy_; }
+ bool http_09_on_non_default_ports_enabled() const {
+ return http_09_on_non_default_ports_enabled_;
+ }
+
// Deletes |parser_| and sets it to NULL.
void DeleteParser();
@@ -63,6 +68,8 @@ class NET_EXPORT_PRIVATE HttpBasicState {
const bool using_proxy_;
+ const bool http_09_on_non_default_ports_enabled_;
+
const HttpRequestInfo* request_info_;
DISALLOW_COPY_AND_ASSIGN(HttpBasicState);
« no previous file with comments | « components/policy/resources/policy_templates.json ('k') | net/http/http_basic_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698