| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 HttpStreamRequest* RequestStreamInternal( | 70 HttpStreamRequest* RequestStreamInternal( |
| 71 const HttpRequestInfo& info, | 71 const HttpRequestInfo& info, |
| 72 RequestPriority priority, | 72 RequestPriority priority, |
| 73 const SSLConfig& server_ssl_config, | 73 const SSLConfig& server_ssl_config, |
| 74 const SSLConfig& proxy_ssl_config, | 74 const SSLConfig& proxy_ssl_config, |
| 75 HttpStreamRequest::Delegate* delegate, | 75 HttpStreamRequest::Delegate* delegate, |
| 76 WebSocketHandshakeStreamBase::CreateHelper* create_helper, | 76 WebSocketHandshakeStreamBase::CreateHelper* create_helper, |
| 77 const BoundNetLog& net_log); | 77 const BoundNetLog& net_log); |
| 78 | 78 |
| 79 PortAlternateProtocolPair GetAlternateProtocolRequestFor( | 79 AlternateProtocolInfo GetAlternateProtocolRequestFor( |
| 80 const GURL& original_url, | 80 const GURL& original_url, |
| 81 GURL* alternate_url); | 81 GURL* alternate_url); |
| 82 | 82 |
| 83 // Detaches |job| from |request|. | 83 // Detaches |job| from |request|. |
| 84 void OrphanJob(Job* job, const Request* request); | 84 void OrphanJob(Job* job, const Request* request); |
| 85 | 85 |
| 86 // Called when a SpdySession is ready. It will find appropriate Requests and | 86 // Called when a SpdySession is ready. It will find appropriate Requests and |
| 87 // fulfill them. |direct| indicates whether or not |spdy_session| uses a | 87 // fulfill them. |direct| indicates whether or not |spdy_session| uses a |
| 88 // proxy. | 88 // proxy. |
| 89 void OnNewSpdySessionReady(const base::WeakPtr<SpdySession>& spdy_session, | 89 void OnNewSpdySessionReady(const base::WeakPtr<SpdySession>& spdy_session, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // deleted when the factory is destroyed. | 130 // deleted when the factory is destroyed. |
| 131 std::set<const Job*> preconnect_job_set_; | 131 std::set<const Job*> preconnect_job_set_; |
| 132 | 132 |
| 133 const bool for_websockets_; | 133 const bool for_websockets_; |
| 134 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); | 134 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 } // namespace net | 137 } // namespace net |
| 138 | 138 |
| 139 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ | 139 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ |
| OLD | NEW |