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

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

Issue 10448083: Fix out of order SYN_STEAM frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address willchan's comments. Created 8 years, 6 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 #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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 84 virtual void set_chunk_callback(ChunkCallback* callback) OVERRIDE;
85 85
86 private: 86 private:
87 friend class SpdyWebSocketStreamSpdy2Test;
88 friend class SpdyWebSocketStreamSpdy3Test;
87 FRIEND_TEST_ALL_PREFIXES(SpdyWebSocketStreamSpdy2Test, Basic); 89 FRIEND_TEST_ALL_PREFIXES(SpdyWebSocketStreamSpdy2Test, Basic);
88 FRIEND_TEST_ALL_PREFIXES(SpdyWebSocketStreamSpdy3Test, Basic); 90 FRIEND_TEST_ALL_PREFIXES(SpdyWebSocketStreamSpdy3Test, Basic);
89 91
90 void OnSpdyStreamCreated(int status); 92 void OnSpdyStreamCreated(int status);
91 93
92 scoped_refptr<SpdyStream> stream_; 94 scoped_refptr<SpdyStream> stream_;
93 scoped_refptr<SpdySession> spdy_session_; 95 scoped_refptr<SpdySession> spdy_session_;
94 Delegate* delegate_; 96 Delegate* delegate_;
95 97
96 DISALLOW_COPY_AND_ASSIGN(SpdyWebSocketStream); 98 DISALLOW_COPY_AND_ASSIGN(SpdyWebSocketStream);
97 }; 99 };
98 100
99 } // namespace net 101 } // namespace net
100 102
101 #endif // NET_SPDY_SPDY_WEBSOCKET_STREAM_H_ 103 #endif // NET_SPDY_SPDY_WEBSOCKET_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698