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

Side by Side Diff: net/http/http_pipelined_host_pool.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
« no previous file with comments | « net/http/http_pipelined_host_impl_unittest.cc ('k') | net/http/http_pipelined_host_pool.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_HOST_POOL_H_ 5 #ifndef NET_HTTP_HTTP_PIPELINED_HOST_POOL_H_
6 #define NET_HTTP_HTTP_PIPELINED_HOST_POOL_H_ 6 #define NET_HTTP_HTTP_PIPELINED_HOST_POOL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // Constructs a new pipeline on |connection| and returns a new 51 // Constructs a new pipeline on |connection| and returns a new
52 // HttpPipelinedStream that uses it. 52 // HttpPipelinedStream that uses it.
53 HttpPipelinedStream* CreateStreamOnNewPipeline( 53 HttpPipelinedStream* CreateStreamOnNewPipeline(
54 const HttpPipelinedHost::Key& key, 54 const HttpPipelinedHost::Key& key,
55 ClientSocketHandle* connection, 55 ClientSocketHandle* connection,
56 const SSLConfig& used_ssl_config, 56 const SSLConfig& used_ssl_config,
57 const ProxyInfo& used_proxy_info, 57 const ProxyInfo& used_proxy_info,
58 const BoundNetLog& net_log, 58 const BoundNetLog& net_log,
59 bool was_npn_negotiated, 59 bool was_npn_negotiated,
60 SSLClientSocket::NextProto protocol_negotiated); 60 NextProto protocol_negotiated);
61 61
62 // Tries to find an existing pipeline with capacity for a new request. If 62 // Tries to find an existing pipeline with capacity for a new request. If
63 // successful, returns a new stream on that pipeline. Otherwise, returns NULL. 63 // successful, returns a new stream on that pipeline. Otherwise, returns NULL.
64 HttpPipelinedStream* CreateStreamOnExistingPipeline( 64 HttpPipelinedStream* CreateStreamOnExistingPipeline(
65 const HttpPipelinedHost::Key& key); 65 const HttpPipelinedHost::Key& key);
66 66
67 // Returns true if a pipelined connection already exists for |key| and 67 // Returns true if a pipelined connection already exists for |key| and
68 // can accept new requests. 68 // can accept new requests.
69 bool IsExistingPipelineAvailableForKey(const HttpPipelinedHost::Key& key); 69 bool IsExistingPipelineAvailableForKey(const HttpPipelinedHost::Key& key);
70 70
(...skipping 21 matching lines...) Expand all
92 HostMap host_map_; 92 HostMap host_map_;
93 HttpServerProperties* http_server_properties_; 93 HttpServerProperties* http_server_properties_;
94 bool force_pipelining_; 94 bool force_pipelining_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedHostPool); 96 DISALLOW_COPY_AND_ASSIGN(HttpPipelinedHostPool);
97 }; 97 };
98 98
99 } // namespace net 99 } // namespace net
100 100
101 #endif // NET_HTTP_HTTP_PIPELINED_HOST_POOL_H_ 101 #endif // NET_HTTP_HTTP_PIPELINED_HOST_POOL_H_
OLDNEW
« no previous file with comments | « net/http/http_pipelined_host_impl_unittest.cc ('k') | net/http/http_pipelined_host_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698