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

Side by Side Diff: components/cronet/ios/cronet_bidirectional_stream.h

Issue 1992953004: [Cronet] Make delaying sending request headers explicit in bidirectional stream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: correct a typo Created 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 COMPONENTS_CRONET_IOS_CRONET_BIDIRECTIONAL_STREAM_H_ 5 #ifndef COMPONENTS_CRONET_IOS_CRONET_BIDIRECTIONAL_STREAM_H_
6 #define COMPONENTS_CRONET_IOS_CRONET_BIDIRECTIONAL_STREAM_H_ 6 #define COMPONENTS_CRONET_IOS_CRONET_BIDIRECTIONAL_STREAM_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // Waiting for WriteData() to be called. 110 // Waiting for WriteData() to be called.
111 WAITING_FOR_WRITE, 111 WAITING_FOR_WRITE,
112 // Writing to the remote, callback will be invoked when done. 112 // Writing to the remote, callback will be invoked when done.
113 WRITING, 113 WRITING,
114 // There is no more data to write and stream is half-closed by the local 114 // There is no more data to write and stream is half-closed by the local
115 // side. 115 // side.
116 WRITING_DONE, 116 WRITING_DONE,
117 }; 117 };
118 118
119 // net::BidirectionalStream::Delegate implementations: 119 // net::BidirectionalStream::Delegate implementations:
120 void OnStreamReady() override; 120 void OnStreamReady(bool request_headers_sent) override;
121 void OnHeadersReceived(const net::SpdyHeaderBlock& response_headers) override; 121 void OnHeadersReceived(const net::SpdyHeaderBlock& response_headers) override;
122 void OnDataRead(int bytes_read) override; 122 void OnDataRead(int bytes_read) override;
123 void OnDataSent() override; 123 void OnDataSent() override;
124 void OnTrailersReceived(const net::SpdyHeaderBlock& trailers) override; 124 void OnTrailersReceived(const net::SpdyHeaderBlock& trailers) override;
125 void OnFailed(int error) override; 125 void OnFailed(int error) override;
126 // Helper method to derive OnSucceeded. 126 // Helper method to derive OnSucceeded.
127 void MaybeOnSucceded(); 127 void MaybeOnSucceded();
128 128
129 void StartOnNetworkThread( 129 void StartOnNetworkThread(
130 std::unique_ptr<net::BidirectionalStreamRequestInfo> request_info); 130 std::unique_ptr<net::BidirectionalStreamRequestInfo> request_info);
(...skipping 27 matching lines...) Expand all
158 scoped_refptr<net::WrappedIOBuffer> write_buffer_; 158 scoped_refptr<net::WrappedIOBuffer> write_buffer_;
159 std::unique_ptr<net::BidirectionalStream> bidi_stream_; 159 std::unique_ptr<net::BidirectionalStream> bidi_stream_;
160 Delegate* delegate_; 160 Delegate* delegate_;
161 161
162 DISALLOW_COPY_AND_ASSIGN(CronetBidirectionalStream); 162 DISALLOW_COPY_AND_ASSIGN(CronetBidirectionalStream);
163 }; 163 };
164 164
165 } // namespace cronet 165 } // namespace cronet
166 166
167 #endif // COMPONENTS_CRONET_IOS_CRONET_BIDIRECTIONAL_STREAM_H_ 167 #endif // COMPONENTS_CRONET_IOS_CRONET_BIDIRECTIONAL_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698