| 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 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // after completion. In other cases, delegate does not be called. | 67 // after completion. In other cases, delegate does not be called. |
| 68 int InitializeStream(const GURL& url, | 68 int InitializeStream(const GURL& url, |
| 69 RequestPriority request_priority, | 69 RequestPriority request_priority, |
| 70 const BoundNetLog& stream_net_log); | 70 const BoundNetLog& stream_net_log); |
| 71 | 71 |
| 72 int SendRequest(scoped_ptr<SpdyHeaderBlock> headers); | 72 int SendRequest(scoped_ptr<SpdyHeaderBlock> headers); |
| 73 int SendData(const char* data, int length); | 73 int SendData(const char* data, int length); |
| 74 void Close(); | 74 void Close(); |
| 75 | 75 |
| 76 // SpdyStream::Delegate | 76 // SpdyStream::Delegate |
| 77 virtual SpdySendStatus OnSendRequestHeadersComplete() OVERRIDE; | 77 virtual void OnSendRequestHeadersComplete() OVERRIDE; |
| 78 virtual void OnSendBody() OVERRIDE; | 78 virtual void OnSendBody() OVERRIDE; |
| 79 virtual void OnSendBodyComplete() OVERRIDE; | 79 virtual void OnSendBodyComplete() OVERRIDE; |
| 80 virtual int OnResponseReceived(const SpdyHeaderBlock& response, | 80 virtual int OnResponseReceived(const SpdyHeaderBlock& response, |
| 81 base::Time response_time, | 81 base::Time response_time, |
| 82 int status) OVERRIDE; | 82 int status) OVERRIDE; |
| 83 virtual int OnDataReceived(scoped_ptr<SpdyBuffer> buffer) OVERRIDE; | 83 virtual int OnDataReceived(scoped_ptr<SpdyBuffer> buffer) OVERRIDE; |
| 84 virtual void OnDataSent() OVERRIDE; | 84 virtual void OnDataSent() OVERRIDE; |
| 85 virtual void OnClose(int status) OVERRIDE; | 85 virtual void OnClose(int status) OVERRIDE; |
| 86 | 86 |
| 87 private: | 87 private: |
| (...skipping 10 matching lines...) Expand all Loading... |
| 98 scoped_refptr<SpdySession> spdy_session_; | 98 scoped_refptr<SpdySession> spdy_session_; |
| 99 size_t pending_send_data_length_; | 99 size_t pending_send_data_length_; |
| 100 Delegate* delegate_; | 100 Delegate* delegate_; |
| 101 | 101 |
| 102 DISALLOW_COPY_AND_ASSIGN(SpdyWebSocketStream); | 102 DISALLOW_COPY_AND_ASSIGN(SpdyWebSocketStream); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace net | 105 } // namespace net |
| 106 | 106 |
| 107 #endif // NET_SPDY_SPDY_WEBSOCKET_STREAM_H_ | 107 #endif // NET_SPDY_SPDY_WEBSOCKET_STREAM_H_ |
| OLD | NEW |