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

Side by Side Diff: net/quic/chromium/quic_http_stream.h

Issue 2848923004: Move the "wait for QUIC handshake confirmation" logic to QuicChromiumClientSession::StreamRequest (Closed)
Patch Set: fix Created 3 years, 7 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
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_QUIC_CHROMIUM_QUIC_HTTP_STREAM_H_ 5 #ifndef NET_QUIC_CHROMIUM_QUIC_HTTP_STREAM_H_
6 #define NET_QUIC_CHROMIUM_QUIC_HTTP_STREAM_H_ 6 #define NET_QUIC_CHROMIUM_QUIC_HTTP_STREAM_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 private: 94 private:
95 friend class test::QuicHttpStreamPeer; 95 friend class test::QuicHttpStreamPeer;
96 96
97 enum State { 97 enum State {
98 STATE_NONE, 98 STATE_NONE,
99 STATE_HANDLE_PROMISE, 99 STATE_HANDLE_PROMISE,
100 STATE_HANDLE_PROMISE_COMPLETE, 100 STATE_HANDLE_PROMISE_COMPLETE,
101 STATE_REQUEST_STREAM, 101 STATE_REQUEST_STREAM,
102 STATE_REQUEST_STREAM_COMPLETE, 102 STATE_REQUEST_STREAM_COMPLETE,
103 STATE_SET_REQUEST_PRIORITY, 103 STATE_SET_REQUEST_PRIORITY,
104 STATE_WAIT_FOR_CONFIRMATION,
105 STATE_WAIT_FOR_CONFIRMATION_COMPLETE,
106 STATE_SEND_HEADERS, 104 STATE_SEND_HEADERS,
107 STATE_SEND_HEADERS_COMPLETE, 105 STATE_SEND_HEADERS_COMPLETE,
108 STATE_READ_REQUEST_BODY, 106 STATE_READ_REQUEST_BODY,
109 STATE_READ_REQUEST_BODY_COMPLETE, 107 STATE_READ_REQUEST_BODY_COMPLETE,
110 STATE_SEND_BODY, 108 STATE_SEND_BODY,
111 STATE_SEND_BODY_COMPLETE, 109 STATE_SEND_BODY_COMPLETE,
112 STATE_OPEN, 110 STATE_OPEN,
113 }; 111 };
114 112
115 void OnIOComplete(int rv); 113 void OnIOComplete(int rv);
116 void DoCallback(int rv); 114 void DoCallback(int rv);
117 115
118 int DoLoop(int rv); 116 int DoLoop(int rv);
119 int DoHandlePromise(); 117 int DoHandlePromise();
120 int DoHandlePromiseComplete(int rv); 118 int DoHandlePromiseComplete(int rv);
121 int DoRequestStream(); 119 int DoRequestStream();
122 int DoRequestStreamComplete(int rv); 120 int DoRequestStreamComplete(int rv);
123 int DoSetRequestPriority(); 121 int DoSetRequestPriority();
124 int DoWaitForConfirmation();
125 int DoWaitForConfirmationComplete(int rv);
126 int DoSendHeaders(); 122 int DoSendHeaders();
127 int DoSendHeadersComplete(int rv); 123 int DoSendHeadersComplete(int rv);
128 int DoReadRequestBody(); 124 int DoReadRequestBody();
129 int DoReadRequestBodyComplete(int rv); 125 int DoReadRequestBodyComplete(int rv);
130 int DoSendBody(); 126 int DoSendBody();
131 int DoSendBodyComplete(int rv); 127 int DoSendBodyComplete(int rv);
132 128
133 int ProcessResponseHeaders(const SpdyHeaderBlock& headers); 129 int ProcessResponseHeaders(const SpdyHeaderBlock& headers);
134 130
135 int ReadAvailableData(IOBuffer* buf, int buf_len); 131 int ReadAvailableData(IOBuffer* buf, int buf_len);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 LoadTimingInfo::ConnectTiming connect_timing_; 234 LoadTimingInfo::ConnectTiming connect_timing_;
239 235
240 base::WeakPtrFactory<QuicHttpStream> weak_factory_; 236 base::WeakPtrFactory<QuicHttpStream> weak_factory_;
241 237
242 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream); 238 DISALLOW_COPY_AND_ASSIGN(QuicHttpStream);
243 }; 239 };
244 240
245 } // namespace net 241 } // namespace net
246 242
247 #endif // NET_QUIC_CHROMIUM_QUIC_HTTP_STREAM_H_ 243 #endif // NET_QUIC_CHROMIUM_QUIC_HTTP_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_chromium_client_session_test.cc ('k') | net/quic/chromium/quic_http_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698