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_REQUEST_H_ | 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ |
6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ | 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "net/base/net_log.h" | 10 #include "net/base/net_log.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // If this Request has a |spdy_session_key_|, remove this session from the | 56 // If this Request has a |spdy_session_key_|, remove this session from the |
57 // SpdySessionRequestMap. | 57 // SpdySessionRequestMap. |
58 void RemoveRequestFromSpdySessionRequestMap(); | 58 void RemoveRequestFromSpdySessionRequestMap(); |
59 | 59 |
60 // If this Request has a |http_pipelining_key_|, remove this session from the | 60 // If this Request has a |http_pipelining_key_|, remove this session from the |
61 // HttpPipeliningRequestMap. | 61 // HttpPipeliningRequestMap. |
62 void RemoveRequestFromHttpPipeliningRequestMap(); | 62 void RemoveRequestFromHttpPipeliningRequestMap(); |
63 | 63 |
64 // Called by an attached Job if it sets up a SpdySession. | 64 // Called by an attached Job if it sets up a SpdySession. |
65 void OnNewSpdySessionReady(Job* job, | 65 void OnNewSpdySessionReady(Job* job, |
66 scoped_refptr<SpdySession> spdy_session, | 66 const base::WeakPtr<SpdySession>& spdy_session, |
67 bool direct); | 67 bool direct); |
68 | 68 |
69 WebSocketStreamBase::Factory* websocket_stream_factory() { | 69 WebSocketStreamBase::Factory* websocket_stream_factory() { |
70 return websocket_stream_factory_; | 70 return websocket_stream_factory_; |
71 } | 71 } |
72 | 72 |
73 // HttpStreamRequest::Delegate methods which we implement. Note we don't | 73 // HttpStreamRequest::Delegate methods which we implement. Note we don't |
74 // actually subclass HttpStreamRequest::Delegate. | 74 // actually subclass HttpStreamRequest::Delegate. |
75 | 75 |
76 void OnStreamReady(Job* job, | 76 void OnStreamReady(Job* job, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 // Protocol negotiated with the server. | 138 // Protocol negotiated with the server. |
139 NextProto protocol_negotiated_; | 139 NextProto protocol_negotiated_; |
140 bool using_spdy_; | 140 bool using_spdy_; |
141 | 141 |
142 DISALLOW_COPY_AND_ASSIGN(Request); | 142 DISALLOW_COPY_AND_ASSIGN(Request); |
143 }; | 143 }; |
144 | 144 |
145 } // namespace net | 145 } // namespace net |
146 | 146 |
147 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ | 147 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ |
OLD | NEW |