OLD | NEW |
---|---|
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_STREAM_FACTORY_IMPL_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ |
6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ | 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
77 typedef std::set<Request*> RequestSet; | 77 typedef std::set<Request*> RequestSet; |
78 typedef std::map<SpdySessionKey, RequestSet> SpdySessionRequestMap; | 78 typedef std::map<SpdySessionKey, RequestSet> SpdySessionRequestMap; |
79 | 79 |
80 HttpStreamRequest* RequestStreamInternal( | 80 HttpStreamRequest* RequestStreamInternal( |
81 const HttpRequestInfo& info, | 81 const HttpRequestInfo& info, |
82 RequestPriority priority, | 82 RequestPriority priority, |
83 const SSLConfig& server_ssl_config, | 83 const SSLConfig& server_ssl_config, |
84 const SSLConfig& proxy_ssl_config, | 84 const SSLConfig& proxy_ssl_config, |
85 HttpStreamRequest::Delegate* delegate, | 85 HttpStreamRequest::Delegate* delegate, |
86 WebSocketHandshakeStreamBase::CreateHelper* create_helper, | 86 WebSocketHandshakeStreamBase::CreateHelper* create_helper, |
87 bool for_bidirectional, | |
Ryan Hamilton
2016/02/27 00:21:14
how about bidirectional_stream or some such?
xunjieli
2016/02/29 15:21:37
Done.
| |
87 const BoundNetLog& net_log); | 88 const BoundNetLog& net_log); |
88 | 89 |
89 AlternativeService GetAlternativeServiceFor( | 90 AlternativeService GetAlternativeServiceFor( |
90 const HttpRequestInfo& request_info, | 91 const HttpRequestInfo& request_info, |
91 HttpStreamRequest::Delegate* delegate); | 92 HttpStreamRequest::Delegate* delegate); |
92 | 93 |
93 // Detaches |job| from |request|. | 94 // Detaches |job| from |request|. |
94 void OrphanJob(Job* job, const Request* request); | 95 void OrphanJob(Job* job, const Request* request); |
95 | 96 |
96 // Called when a SpdySession is ready. It will find appropriate Requests and | 97 // Called when a SpdySession is ready. It will find appropriate Requests and |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
144 // deleted when the factory is destroyed. | 145 // deleted when the factory is destroyed. |
145 std::set<const Job*> preconnect_job_set_; | 146 std::set<const Job*> preconnect_job_set_; |
146 | 147 |
147 const bool for_websockets_; | 148 const bool for_websockets_; |
148 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); | 149 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); |
149 }; | 150 }; |
150 | 151 |
151 } // namespace net | 152 } // namespace net |
152 | 153 |
153 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ | 154 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ |
OLD | NEW |