| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 void OrphanJob(Job* job, const Request* request); | 67 void OrphanJob(Job* job, const Request* request); |
| 68 | 68 |
| 69 // Called when a SpdySession is ready. It will find appropriate Requests and | 69 // Called when a SpdySession is ready. It will find appropriate Requests and |
| 70 // fulfill them. |direct| indicates whether or not |spdy_session| uses a | 70 // fulfill them. |direct| indicates whether or not |spdy_session| uses a |
| 71 // proxy. | 71 // proxy. |
| 72 void OnSpdySessionReady(scoped_refptr<SpdySession> spdy_session, | 72 void OnSpdySessionReady(scoped_refptr<SpdySession> spdy_session, |
| 73 bool direct, | 73 bool direct, |
| 74 const SSLConfig& used_ssl_config, | 74 const SSLConfig& used_ssl_config, |
| 75 const ProxyInfo& used_proxy_info, | 75 const ProxyInfo& used_proxy_info, |
| 76 bool was_npn_negotiated, | 76 bool was_npn_negotiated, |
| 77 SSLClientSocket::NextProto protocol_negotiated, | 77 NextProto protocol_negotiated, |
| 78 bool using_spdy, | 78 bool using_spdy, |
| 79 const BoundNetLog& net_log); | 79 const BoundNetLog& net_log); |
| 80 | 80 |
| 81 // Called when the Job detects that the endpoint indicated by the | 81 // Called when the Job detects that the endpoint indicated by the |
| 82 // Alternate-Protocol does not work. Lets the factory update | 82 // Alternate-Protocol does not work. Lets the factory update |
| 83 // HttpAlternateProtocols with the failure and resets the SPDY session key. | 83 // HttpAlternateProtocols with the failure and resets the SPDY session key. |
| 84 void OnBrokenAlternateProtocol(const Job*, const HostPortPair& origin); | 84 void OnBrokenAlternateProtocol(const Job*, const HostPortPair& origin); |
| 85 | 85 |
| 86 // Invoked when an orphaned Job finishes. | 86 // Invoked when an orphaned Job finishes. |
| 87 void OnOrphanedJobComplete(const Job* job); | 87 void OnOrphanedJobComplete(const Job* job); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // object. They're owned by HttpStreamFactoryImpl. Leftover jobs will be | 122 // object. They're owned by HttpStreamFactoryImpl. Leftover jobs will be |
| 123 // deleted when the factory is destroyed. | 123 // deleted when the factory is destroyed. |
| 124 std::set<const Job*> preconnect_job_set_; | 124 std::set<const Job*> preconnect_job_set_; |
| 125 | 125 |
| 126 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); | 126 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 } // namespace net | 129 } // namespace net |
| 130 | 130 |
| 131 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ | 131 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ |
| OLD | NEW |