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

Side by Side Diff: net/http/http_pipelined_connection.h

Issue 9959033: Move NextProto enum to a new file net/socket/next_proto.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address wtc's comments Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_HTTP_HTTP_PIPELINED_CONNECTION_H_ 5 #ifndef NET_HTTP_HTTP_PIPELINED_CONNECTION_H_
6 #define NET_HTTP_HTTP_PIPELINED_CONNECTION_H_ 6 #define NET_HTTP_HTTP_PIPELINED_CONNECTION_H_
7 #pragma once 7 #pragma once
8 8
9 #include "net/base/net_export.h" 9 #include "net/base/net_export.h"
10 #include "net/base/net_log.h" 10 #include "net/base/net_log.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual ~Factory() {} 47 virtual ~Factory() {}
48 48
49 virtual HttpPipelinedConnection* CreateNewPipeline( 49 virtual HttpPipelinedConnection* CreateNewPipeline(
50 ClientSocketHandle* connection, 50 ClientSocketHandle* connection,
51 Delegate* delegate, 51 Delegate* delegate,
52 const HostPortPair& origin, 52 const HostPortPair& origin,
53 const SSLConfig& used_ssl_config, 53 const SSLConfig& used_ssl_config,
54 const ProxyInfo& used_proxy_info, 54 const ProxyInfo& used_proxy_info,
55 const BoundNetLog& net_log, 55 const BoundNetLog& net_log,
56 bool was_npn_negotiated, 56 bool was_npn_negotiated,
57 SSLClientSocket::NextProto protocol_negotiated) = 0; 57 NextProto protocol_negotiated) = 0;
58 }; 58 };
59 59
60 virtual ~HttpPipelinedConnection() {} 60 virtual ~HttpPipelinedConnection() {}
61 61
62 // Returns a new stream that uses this pipeline. 62 // Returns a new stream that uses this pipeline.
63 virtual HttpPipelinedStream* CreateNewStream() = 0; 63 virtual HttpPipelinedStream* CreateNewStream() = 0;
64 64
65 // The number of streams currently associated with this pipeline. 65 // The number of streams currently associated with this pipeline.
66 virtual int depth() const = 0; 66 virtual int depth() const = 0;
67 67
(...skipping 11 matching lines...) Expand all
79 // The ProxyInfo used to establish this connection. 79 // The ProxyInfo used to establish this connection.
80 virtual const ProxyInfo& used_proxy_info() const = 0; 80 virtual const ProxyInfo& used_proxy_info() const = 0;
81 81
82 // The BoundNetLog of this pipelined connection. 82 // The BoundNetLog of this pipelined connection.
83 virtual const BoundNetLog& net_log() const = 0; 83 virtual const BoundNetLog& net_log() const = 0;
84 84
85 // True if this connection was NPN negotiated. 85 // True if this connection was NPN negotiated.
86 virtual bool was_npn_negotiated() const = 0; 86 virtual bool was_npn_negotiated() const = 0;
87 87
88 // Protocol negotiated with the server. 88 // Protocol negotiated with the server.
89 virtual SSLClientSocket::NextProto protocol_negotiated() const = 0; 89 virtual NextProto protocol_negotiated() const = 0;
90 }; 90 };
91 91
92 } // namespace net 92 } // namespace net
93 93
94 #endif // NET_HTTP_HTTP_PIPELINED_CONNECTION_H_ 94 #endif // NET_HTTP_HTTP_PIPELINED_CONNECTION_H_
OLDNEW
« no previous file with comments | « net/http/http_network_transaction_spdy3_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