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_WEBSOCKET_STREAM_H_ | 5 #ifndef NET_SPDY_SPDY_WEBSOCKET_STREAM_H_ |
6 #define NET_SPDY_SPDY_WEBSOCKET_STREAM_H_ | 6 #define NET_SPDY_SPDY_WEBSOCKET_STREAM_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // SpdyStream::Delegate | 74 // SpdyStream::Delegate |
75 virtual bool OnSendHeadersComplete(int status) OVERRIDE; | 75 virtual bool OnSendHeadersComplete(int status) OVERRIDE; |
76 virtual int OnSendBody() OVERRIDE; | 76 virtual int OnSendBody() OVERRIDE; |
77 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE; | 77 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE; |
78 virtual int OnResponseReceived(const SpdyHeaderBlock& response, | 78 virtual int OnResponseReceived(const SpdyHeaderBlock& response, |
79 base::Time response_time, | 79 base::Time response_time, |
80 int status) OVERRIDE; | 80 int status) OVERRIDE; |
81 virtual void OnDataReceived(const char* data, int length) OVERRIDE; | 81 virtual void OnDataReceived(const char* data, int length) OVERRIDE; |
82 virtual void OnDataSent(int length) OVERRIDE; | 82 virtual void OnDataSent(int length) OVERRIDE; |
83 virtual void OnClose(int status) OVERRIDE; | 83 virtual void OnClose(int status) OVERRIDE; |
84 virtual void set_chunk_callback(ChunkCallback* callback) OVERRIDE; | |
85 | 84 |
86 private: | 85 private: |
87 FRIEND_TEST_ALL_PREFIXES(SpdyWebSocketStreamSpdy2Test, Basic); | 86 FRIEND_TEST_ALL_PREFIXES(SpdyWebSocketStreamSpdy2Test, Basic); |
88 FRIEND_TEST_ALL_PREFIXES(SpdyWebSocketStreamSpdy3Test, Basic); | 87 FRIEND_TEST_ALL_PREFIXES(SpdyWebSocketStreamSpdy3Test, Basic); |
89 | 88 |
90 void OnSpdyStreamCreated(int status); | 89 void OnSpdyStreamCreated(int status); |
91 | 90 |
92 scoped_refptr<SpdyStream> stream_; | 91 scoped_refptr<SpdyStream> stream_; |
93 scoped_refptr<SpdySession> spdy_session_; | 92 scoped_refptr<SpdySession> spdy_session_; |
94 Delegate* delegate_; | 93 Delegate* delegate_; |
95 | 94 |
96 DISALLOW_COPY_AND_ASSIGN(SpdyWebSocketStream); | 95 DISALLOW_COPY_AND_ASSIGN(SpdyWebSocketStream); |
97 }; | 96 }; |
98 | 97 |
99 } // namespace net | 98 } // namespace net |
100 | 99 |
101 #endif // NET_SPDY_SPDY_WEBSOCKET_STREAM_H_ | 100 #endif // NET_SPDY_SPDY_WEBSOCKET_STREAM_H_ |
OLD | NEW |