| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 const HttpRequestInfo& info, | 83 const HttpRequestInfo& info, |
| 84 RequestPriority priority, | 84 RequestPriority priority, |
| 85 const SSLConfig& server_ssl_config, | 85 const SSLConfig& server_ssl_config, |
| 86 const SSLConfig& proxy_ssl_config, | 86 const SSLConfig& proxy_ssl_config, |
| 87 HttpStreamRequest::Delegate* delegate, | 87 HttpStreamRequest::Delegate* delegate, |
| 88 WebSocketHandshakeStreamBase::CreateHelper* create_helper, | 88 WebSocketHandshakeStreamBase::CreateHelper* create_helper, |
| 89 const BoundNetLog& net_log); | 89 const BoundNetLog& net_log); |
| 90 | 90 |
| 91 PortAlternateProtocolPair GetAlternateProtocolRequestFor( | 91 PortAlternateProtocolPair GetAlternateProtocolRequestFor( |
| 92 const GURL& original_url, | 92 const GURL& original_url, |
| 93 GURL* alternate_url); | 93 GURL* alternate_url) const; |
| 94 | 94 |
| 95 // Detaches |job| from |request|. | 95 // Detaches |job| from |request|. |
| 96 void OrphanJob(Job* job, const Request* request); | 96 void OrphanJob(Job* job, const Request* request); |
| 97 | 97 |
| 98 // Called when a SpdySession is ready. It will find appropriate Requests and | 98 // Called when a SpdySession is ready. It will find appropriate Requests and |
| 99 // fulfill them. |direct| indicates whether or not |spdy_session| uses a | 99 // fulfill them. |direct| indicates whether or not |spdy_session| uses a |
| 100 // proxy. | 100 // proxy. |
| 101 void OnNewSpdySessionReady(const base::WeakPtr<SpdySession>& spdy_session, | 101 void OnNewSpdySessionReady(const base::WeakPtr<SpdySession>& spdy_session, |
| 102 bool direct, | 102 bool direct, |
| 103 const SSLConfig& used_ssl_config, | 103 const SSLConfig& used_ssl_config, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // deleted when the factory is destroyed. | 150 // deleted when the factory is destroyed. |
| 151 std::set<const Job*> preconnect_job_set_; | 151 std::set<const Job*> preconnect_job_set_; |
| 152 | 152 |
| 153 const bool for_websockets_; | 153 const bool for_websockets_; |
| 154 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); | 154 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 } // namespace net | 157 } // namespace net |
| 158 | 158 |
| 159 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ | 159 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ |
| OLD | NEW |