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

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

Issue 9582034: Fork SPDY/2 and SPDY/3 versions of our SPDY tests, in preparation for landing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix merge bug Created 8 years, 9 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
« no previous file with comments | « net/spdy/buffered_spdy_framer_unittest.cc ('k') | net/spdy/spdy_http_stream_spdy2_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE; 79 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE;
80 virtual int OnResponseReceived(const spdy::SpdyHeaderBlock& response, 80 virtual int OnResponseReceived(const spdy::SpdyHeaderBlock& response,
81 base::Time response_time, 81 base::Time response_time,
82 int status) OVERRIDE; 82 int status) OVERRIDE;
83 virtual void OnDataReceived(const char* buffer, int bytes) OVERRIDE; 83 virtual void OnDataReceived(const char* buffer, int bytes) OVERRIDE;
84 virtual void OnDataSent(int length) OVERRIDE; 84 virtual void OnDataSent(int length) OVERRIDE;
85 virtual void OnClose(int status) OVERRIDE; 85 virtual void OnClose(int status) OVERRIDE;
86 virtual void set_chunk_callback(ChunkCallback* callback) OVERRIDE; 86 virtual void set_chunk_callback(ChunkCallback* callback) OVERRIDE;
87 87
88 private: 88 private:
89 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, FlowControlStallResume); 89 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy2Test,
90 FlowControlStallResume);
91 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy21Test,
92 FlowControlStallResume);
93 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionSpdy3Test,
94 FlowControlStallResume);
90 95
91 // Call the user callback. 96 // Call the user callback.
92 void DoCallback(int rv); 97 void DoCallback(int rv);
93 98
94 void ScheduleBufferedReadCallback(); 99 void ScheduleBufferedReadCallback();
95 100
96 // Returns true if the callback is invoked. 101 // Returns true if the callback is invoked.
97 bool DoBufferedReadCallback(); 102 bool DoBufferedReadCallback();
98 bool ShouldWaitForMoreBufferedData() const; 103 bool ShouldWaitForMoreBufferedData() const;
99 104
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 bool direct_; 146 bool direct_;
142 147
143 bool send_last_chunk_; 148 bool send_last_chunk_;
144 149
145 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream); 150 DISALLOW_COPY_AND_ASSIGN(SpdyHttpStream);
146 }; 151 };
147 152
148 } // namespace net 153 } // namespace net
149 154
150 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_ 155 #endif // NET_SPDY_SPDY_HTTP_STREAM_H_
OLDNEW
« no previous file with comments | « net/spdy/buffered_spdy_framer_unittest.cc ('k') | net/spdy/spdy_http_stream_spdy2_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698