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