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

Unified Diff: net/http/http_pipelined_connection.h

Issue 275953002: Remove HTTP pipelining support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix line endings Created 6 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 | « net/http/http_network_transaction_unittest.cc ('k') | net/http/http_pipelined_connection_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_pipelined_connection.h
diff --git a/net/http/http_pipelined_connection.h b/net/http/http_pipelined_connection.h
deleted file mode 100644
index d0d3599e3f198ec36707048ec022a85539a1860d..0000000000000000000000000000000000000000
--- a/net/http/http_pipelined_connection.h
+++ /dev/null
@@ -1,93 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_HTTP_HTTP_PIPELINED_CONNECTION_H_
-#define NET_HTTP_HTTP_PIPELINED_CONNECTION_H_
-
-#include "net/base/net_export.h"
-#include "net/base/net_log.h"
-#include "net/socket/ssl_client_socket.h"
-
-namespace net {
-
-class BoundNetLog;
-class ClientSocketHandle;
-class HostPortPair;
-class HttpPipelinedStream;
-class ProxyInfo;
-struct SSLConfig;
-
-class NET_EXPORT_PRIVATE HttpPipelinedConnection {
- public:
- enum Feedback {
- OK,
- PIPELINE_SOCKET_ERROR,
- OLD_HTTP_VERSION,
- MUST_CLOSE_CONNECTION,
- AUTHENTICATION_REQUIRED,
- };
-
- class Delegate {
- public:
- // Called when a pipeline has newly available capacity. This may be because
- // the first request has been sent and the pipeline is now active. Or, it
- // may be because a request successfully completed.
- virtual void OnPipelineHasCapacity(HttpPipelinedConnection* pipeline) = 0;
-
- // Called every time a pipeline receives headers. Lets the delegate know if
- // the headers indicate that pipelining can be used.
- virtual void OnPipelineFeedback(HttpPipelinedConnection* pipeline,
- Feedback feedback) = 0;
- };
-
- class Factory {
- public:
- virtual ~Factory() {}
-
- virtual HttpPipelinedConnection* CreateNewPipeline(
- ClientSocketHandle* connection,
- Delegate* delegate,
- const HostPortPair& origin,
- const SSLConfig& used_ssl_config,
- const ProxyInfo& used_proxy_info,
- const BoundNetLog& net_log,
- bool was_npn_negotiated,
- NextProto protocol_negotiated) = 0;
- };
-
- virtual ~HttpPipelinedConnection() {}
-
- // Returns a new stream that uses this pipeline.
- virtual HttpPipelinedStream* CreateNewStream() = 0;
-
- // The number of streams currently associated with this pipeline.
- virtual int depth() const = 0;
-
- // True if this pipeline can accept new HTTP requests. False if a fatal error
- // has occurred.
- virtual bool usable() const = 0;
-
- // True if this pipeline has bound one request and is ready for additional
- // requests.
- virtual bool active() const = 0;
-
- // The SSLConfig used to establish this connection.
- virtual const SSLConfig& used_ssl_config() const = 0;
-
- // The ProxyInfo used to establish this connection.
- virtual const ProxyInfo& used_proxy_info() const = 0;
-
- // The BoundNetLog of this pipelined connection.
- virtual const BoundNetLog& net_log() const = 0;
-
- // True if this connection was NPN negotiated.
- virtual bool was_npn_negotiated() const = 0;
-
- // Protocol negotiated with the server.
- virtual NextProto protocol_negotiated() const = 0;
-};
-
-} // namespace net
-
-#endif // NET_HTTP_HTTP_PIPELINED_CONNECTION_H_
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/http/http_pipelined_connection_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698