| 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_SPDY_SPDY_HTTP_STREAM_H_ | 5 #ifndef NET_SPDY_SPDY_HTTP_STREAM_H_ |
| 6 #define NET_SPDY_SPDY_HTTP_STREAM_H_ | 6 #define NET_SPDY_SPDY_HTTP_STREAM_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <list> | 10 #include <list> |
| 9 | 11 |
| 10 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 11 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 13 #include "net/base/completion_callback.h" | 15 #include "net/base/completion_callback.h" |
| 14 #include "net/http/http_stream.h" | 16 #include "net/http/http_stream.h" |
| 15 #include "net/log/net_log.h" | 17 #include "net/log/net_log.h" |
| 16 #include "net/spdy/spdy_read_queue.h" | 18 #include "net/spdy/spdy_read_queue.h" |
| 17 #include "net/spdy/spdy_session.h" | 19 #include "net/spdy/spdy_session.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 HttpStream* RenewStreamForAuth() override; | 60 HttpStream* RenewStreamForAuth() override; |
| 59 bool IsResponseBodyComplete() const override; | 61 bool IsResponseBodyComplete() const override; |
| 60 | 62 |
| 61 // Must not be called if a NULL SpdySession was pssed into the | 63 // Must not be called if a NULL SpdySession was pssed into the |
| 62 // constructor. | 64 // constructor. |
| 63 bool IsConnectionReused() const override; | 65 bool IsConnectionReused() const override; |
| 64 | 66 |
| 65 void SetConnectionReused() override; | 67 void SetConnectionReused() override; |
| 66 bool CanReuseConnection() const override; | 68 bool CanReuseConnection() const override; |
| 67 int64 GetTotalReceivedBytes() const override; | 69 int64 GetTotalReceivedBytes() const override; |
| 70 int64_t GetTotalSentBytes() const override; |
| 68 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; | 71 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; |
| 69 void GetSSLInfo(SSLInfo* ssl_info) override; | 72 void GetSSLInfo(SSLInfo* ssl_info) override; |
| 70 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; | 73 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; |
| 71 void Drain(HttpNetworkSession* session) override; | 74 void Drain(HttpNetworkSession* session) override; |
| 72 void SetPriority(RequestPriority priority) override; | 75 void SetPriority(RequestPriority priority) override; |
| 73 | 76 |
| 74 // SpdyStream::Delegate implementation. | 77 // SpdyStream::Delegate implementation. |
| 75 void OnRequestHeadersSent() override; | 78 void OnRequestHeadersSent() override; |
| 76 SpdyResponseHeadersStatus OnResponseHeadersUpdated( | 79 SpdyResponseHeadersStatus OnResponseHeadersUpdated( |
| 77 const SpdyHeaderBlock& response_headers) override; | 80 const SpdyHeaderBlock& response_headers) override; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 bool direct_; | 159 bool direct_; |
| 157 | 160 |
| 158 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; | 161 base::WeakPtrFactory<SpdyHttpStream> weak_factory_; |
| 159 | 162 |
| 160 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 163 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
| 161 }; | 164 }; |
| 162 | 165 |
| 163 } // namespace net | 166 } // namespace net |
| 164 | 167 |
| 165 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 168 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
| OLD | NEW |