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 #include "net/spdy/spdy_session.h" | 5 #include "net/spdy/spdy_session.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1157 SimpleSpdyIOBufferProducer(SpdyFrame* frame, | 1157 SimpleSpdyIOBufferProducer(SpdyFrame* frame, |
1158 RequestPriority priority) | 1158 RequestPriority priority) |
1159 : frame_(frame), | 1159 : frame_(frame), |
1160 priority_(priority) { | 1160 priority_(priority) { |
1161 } | 1161 } |
1162 | 1162 |
1163 virtual RequestPriority GetPriority() const OVERRIDE { | 1163 virtual RequestPriority GetPriority() const OVERRIDE { |
1164 return priority_; | 1164 return priority_; |
1165 } | 1165 } |
1166 | 1166 |
1167 virtual SpdyIOBuffer* ProduceNextBuffer(SpdySession* session) { | 1167 virtual SpdyIOBuffer* ProduceNextBuffer(SpdySession* session) OVERRIDE { |
1168 return SpdySession::SpdyIOBufferProducer::CreateIOBuffer( | 1168 return SpdySession::SpdyIOBufferProducer::CreateIOBuffer( |
1169 frame_.get(), priority_, NULL); | 1169 frame_.get(), priority_, NULL); |
1170 } | 1170 } |
1171 | 1171 |
1172 private: | 1172 private: |
1173 scoped_ptr<SpdyFrame> frame_; | 1173 scoped_ptr<SpdyFrame> frame_; |
1174 RequestPriority priority_; | 1174 RequestPriority priority_; |
1175 }; | 1175 }; |
1176 | 1176 |
1177 void SpdySession::QueueFrame(SpdyFrame* frame, | 1177 void SpdySession::QueueFrame(SpdyFrame* frame, |
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1990 SSLClientSocket* SpdySession::GetSSLClientSocket() const { | 1990 SSLClientSocket* SpdySession::GetSSLClientSocket() const { |
1991 if (!is_secure_) | 1991 if (!is_secure_) |
1992 return NULL; | 1992 return NULL; |
1993 SSLClientSocket* ssl_socket = | 1993 SSLClientSocket* ssl_socket = |
1994 reinterpret_cast<SSLClientSocket*>(connection_->socket()); | 1994 reinterpret_cast<SSLClientSocket*>(connection_->socket()); |
1995 DCHECK(ssl_socket); | 1995 DCHECK(ssl_socket); |
1996 return ssl_socket; | 1996 return ssl_socket; |
1997 } | 1997 } |
1998 | 1998 |
1999 } // namespace net | 1999 } // namespace net |
OLD | NEW |