| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_SPDY_SPDY_STREAM_H_ | 5 #ifndef NET_SPDY_SPDY_STREAM_H_ |
| 6 #define NET_SPDY_SPDY_STREAM_H_ | 6 #define NET_SPDY_SPDY_STREAM_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/linked_ptr.h" | 13 #include "base/linked_ptr.h" |
| 14 #include "base/ref_counted.h" | 14 #include "base/ref_counted.h" |
| 15 #include "base/scoped_ptr.h" | 15 #include "base/scoped_ptr.h" |
| 16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
| 17 #include "net/base/bandwidth_metrics.h" | 17 #include "net/base/bandwidth_metrics.h" |
| 18 #include "net/base/io_buffer.h" | 18 #include "net/base/io_buffer.h" |
| 19 #include "net/base/net_log.h" | 19 #include "net/base/net_log.h" |
| 20 #include "net/spdy/spdy_framer.h" | 20 #include "net/spdy/spdy_framer.h" |
| 21 #include "net/spdy/spdy_protocol.h" | 21 #include "net/spdy/spdy_protocol.h" |
| 22 | 22 |
| 23 namespace net { | 23 namespace net { |
| 24 | 24 |
| 25 class AddressList; | 25 class AddressList; |
| 26 class SpdySession; | 26 class SpdySession; |
| 27 class SSLCertRequestInfo; | 27 class SSLCertRequestInfo; |
| 28 class AuthChallengeInfo; |
| 28 class SSLInfo; | 29 class SSLInfo; |
| 29 | 30 |
| 30 // The SpdyStream is used by the SpdySession to represent each stream known | 31 // The SpdyStream is used by the SpdySession to represent each stream known |
| 31 // on the SpdySession. This class provides interfaces for SpdySession to use. | 32 // on the SpdySession. This class provides interfaces for SpdySession to use. |
| 32 // Streams can be created either by the client or by the server. When they | 33 // Streams can be created either by the client or by the server. When they |
| 33 // are initiated by the client, both the SpdySession and client object (such as | 34 // are initiated by the client, both the SpdySession and client object (such as |
| 34 // a SpdyNetworkTransaction) will maintain a reference to the stream. When | 35 // a SpdyNetworkTransaction) will maintain a reference to the stream. When |
| 35 // initiated by the server, only the SpdySession will maintain any reference, | 36 // initiated by the server, only the SpdySession will maintain any reference, |
| 36 // until such a time as a client object requests a stream for the path. | 37 // until such a time as a client object requests a stream for the path. |
| 37 class SpdyStream : public base::RefCounted<SpdyStream> { | 38 class SpdyStream : public base::RefCounted<SpdyStream> { |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 int recv_bytes_; | 309 int recv_bytes_; |
| 309 // Data received before delegate is attached. | 310 // Data received before delegate is attached. |
| 310 std::vector<scoped_refptr<IOBufferWithSize> > pending_buffers_; | 311 std::vector<scoped_refptr<IOBufferWithSize> > pending_buffers_; |
| 311 | 312 |
| 312 DISALLOW_COPY_AND_ASSIGN(SpdyStream); | 313 DISALLOW_COPY_AND_ASSIGN(SpdyStream); |
| 313 }; | 314 }; |
| 314 | 315 |
| 315 } // namespace net | 316 } // namespace net |
| 316 | 317 |
| 317 #endif // NET_SPDY_SPDY_STREAM_H_ | 318 #endif // NET_SPDY_SPDY_STREAM_H_ |
| OLD | NEW |