Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: net/spdy/spdy_websocket_stream.h

Issue 10815074: Instead of enqueueing SPDY frames, enqueue SPDY streams that are ready to produce data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove logging and cleanup Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual int OnSendBody() OVERRIDE; 75 virtual int OnSendBody() OVERRIDE;
76 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE; 76 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE;
77 virtual int OnResponseReceived(const SpdyHeaderBlock& response, 77 virtual int OnResponseReceived(const SpdyHeaderBlock& response,
78 base::Time response_time, 78 base::Time response_time,
79 int status) OVERRIDE; 79 int status) OVERRIDE;
80 virtual void OnDataReceived(const char* data, int length) OVERRIDE; 80 virtual void OnDataReceived(const char* data, int length) OVERRIDE;
81 virtual void OnDataSent(int length) OVERRIDE; 81 virtual void OnDataSent(int length) OVERRIDE;
82 virtual void OnClose(int status) OVERRIDE; 82 virtual void OnClose(int status) OVERRIDE;
83 83
84 private: 84 private:
85 friend class SpdyWebSocketStreamSpdy2Test;
86 friend class SpdyWebSocketStreamSpdy3Test;
85 FRIEND_TEST_ALL_PREFIXES(SpdyWebSocketStreamSpdy2Test, Basic); 87 FRIEND_TEST_ALL_PREFIXES(SpdyWebSocketStreamSpdy2Test, Basic);
86 FRIEND_TEST_ALL_PREFIXES(SpdyWebSocketStreamSpdy3Test, Basic); 88 FRIEND_TEST_ALL_PREFIXES(SpdyWebSocketStreamSpdy3Test, Basic);
87 89
88 void OnSpdyStreamCreated(int status); 90 void OnSpdyStreamCreated(int status);
89 91
90 scoped_refptr<SpdyStream> stream_; 92 scoped_refptr<SpdyStream> stream_;
91 scoped_refptr<SpdySession> spdy_session_; 93 scoped_refptr<SpdySession> spdy_session_;
92 Delegate* delegate_; 94 Delegate* delegate_;
93 95
94 DISALLOW_COPY_AND_ASSIGN(SpdyWebSocketStream); 96 DISALLOW_COPY_AND_ASSIGN(SpdyWebSocketStream);
95 }; 97 };
96 98
97 } // namespace net 99 } // namespace net
98 100
99 #endif // NET_SPDY_SPDY_WEBSOCKET_STREAM_H_ 101 #endif // NET_SPDY_SPDY_WEBSOCKET_STREAM_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_stream_spdy3_unittest.cc ('k') | net/spdy/spdy_websocket_stream_spdy2_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698