Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/logging.h" | |
| 13 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 14 #include "base/task.h" | 15 #include "base/task.h" |
| 15 #include "net/base/completion_callback.h" | 16 #include "net/base/completion_callback.h" |
| 16 #include "net/base/net_log.h" | 17 #include "net/base/net_log.h" |
| 17 #include "net/http/http_request_info.h" | 18 #include "net/http/http_request_info.h" |
| 18 #include "net/http/http_stream.h" | 19 #include "net/http/http_stream.h" |
| 19 #include "net/spdy/spdy_protocol.h" | 20 #include "net/spdy/spdy_protocol.h" |
| 20 #include "net/spdy/spdy_session.h" | 21 #include "net/spdy/spdy_session.h" |
| 21 #include "net/spdy/spdy_stream.h" | 22 #include "net/spdy/spdy_stream.h" |
| 22 | 23 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 virtual bool CanFindEndOfResponse() const OVERRIDE; | 63 virtual bool CanFindEndOfResponse() const OVERRIDE; |
| 63 virtual bool IsMoreDataBuffered() const OVERRIDE; | 64 virtual bool IsMoreDataBuffered() const OVERRIDE; |
| 64 virtual bool IsConnectionReused() const OVERRIDE; | 65 virtual bool IsConnectionReused() const OVERRIDE; |
| 65 virtual void SetConnectionReused() OVERRIDE; | 66 virtual void SetConnectionReused() OVERRIDE; |
| 66 virtual bool IsConnectionReusable() const OVERRIDE; | 67 virtual bool IsConnectionReusable() const OVERRIDE; |
| 67 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; | 68 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; |
| 68 virtual void GetSSLCertRequestInfo( | 69 virtual void GetSSLCertRequestInfo( |
| 69 SSLCertRequestInfo* cert_request_info) OVERRIDE; | 70 SSLCertRequestInfo* cert_request_info) OVERRIDE; |
| 70 virtual bool IsSpdyHttpStream() const OVERRIDE; | 71 virtual bool IsSpdyHttpStream() const OVERRIDE; |
| 71 | 72 |
| 73 virtual double GetRTTMs() const OVERRIDE { | |
| 74 LOG(ERROR) << "Should not be called"; | |
|
willchan no longer on Chromium
2011/06/06 10:57:36
Use NOTREACHED() instead.
Gagan
2011/06/06 20:27:10
Replaced with LogRttVsBytesMetrics as you suggeste
| |
| 75 return 0; | |
| 76 } | |
| 77 virtual int GetBytesReceived() const OVERRIDE { | |
| 78 LOG(ERROR) << "Should not be called"; | |
| 79 return -1; | |
| 80 } | |
| 81 | |
| 72 // SpdyStream::Delegate methods: | 82 // SpdyStream::Delegate methods: |
| 73 virtual bool OnSendHeadersComplete(int status) OVERRIDE; | 83 virtual bool OnSendHeadersComplete(int status) OVERRIDE; |
| 74 virtual int OnSendBody() OVERRIDE; | 84 virtual int OnSendBody() OVERRIDE; |
| 75 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE; | 85 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE; |
| 76 virtual int OnResponseReceived(const spdy::SpdyHeaderBlock& response, | 86 virtual int OnResponseReceived(const spdy::SpdyHeaderBlock& response, |
| 77 base::Time response_time, | 87 base::Time response_time, |
| 78 int status) OVERRIDE; | 88 int status) OVERRIDE; |
| 79 virtual void OnDataReceived(const char* buffer, int bytes) OVERRIDE; | 89 virtual void OnDataReceived(const char* buffer, int bytes) OVERRIDE; |
| 80 virtual void OnDataSent(int length) OVERRIDE; | 90 virtual void OnDataSent(int length) OVERRIDE; |
| 81 virtual void OnClose(int status) OVERRIDE; | 91 virtual void OnClose(int status) OVERRIDE; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 132 bool direct_; | 142 bool direct_; |
| 133 | 143 |
| 134 bool send_last_chunk_; | 144 bool send_last_chunk_; |
| 135 | 145 |
| 136 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); | 146 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); |
| 137 }; | 147 }; |
| 138 | 148 |
| 139 } // namespace net | 149 } // namespace net |
| 140 | 150 |
| 141 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ | 151 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ |
| OLD | NEW |