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

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

Issue 9959033: Move NextProto enum to a new file net/socket/next_proto.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address wtc's comments Created 8 years, 8 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/spdy_session_spdy3_unittest.cc ('k') | net/spdy/spdy_stream.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_STREAM_H_ 5 #ifndef NET_SPDY_SPDY_STREAM_H_
6 #define NET_SPDY_SPDY_STREAM_H_ 6 #define NET_SPDY_SPDY_STREAM_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // For non push stream, it will send SYN_STREAM frame. 224 // For non push stream, it will send SYN_STREAM frame.
225 int SendRequest(bool has_upload_data); 225 int SendRequest(bool has_upload_data);
226 226
227 // Sends DATA frame. 227 // Sends DATA frame.
228 int WriteStreamData(IOBuffer* data, int length, 228 int WriteStreamData(IOBuffer* data, int length,
229 SpdyDataFlags flags); 229 SpdyDataFlags flags);
230 230
231 // Fills SSL info in |ssl_info| and returns true when SSL is in use. 231 // Fills SSL info in |ssl_info| and returns true when SSL is in use.
232 bool GetSSLInfo(SSLInfo* ssl_info, 232 bool GetSSLInfo(SSLInfo* ssl_info,
233 bool* was_npn_negotiated, 233 bool* was_npn_negotiated,
234 SSLClientSocket::NextProto* protocol_negotiated); 234 NextProto* protocol_negotiated);
235 235
236 // Fills SSL Certificate Request info |cert_request_info| and returns 236 // Fills SSL Certificate Request info |cert_request_info| and returns
237 // true when SSL is in use. 237 // true when SSL is in use.
238 bool GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); 238 bool GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info);
239 239
240 bool is_idle() const { 240 bool is_idle() const {
241 return io_state_ == STATE_OPEN || io_state_ == STATE_DONE; 241 return io_state_ == STATE_OPEN || io_state_ == STATE_DONE;
242 } 242 }
243 243
244 int response_status() const { return response_status_; } 244 int response_status() const { return response_status_; }
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 const SpdyStreamId stream_id_; 381 const SpdyStreamId stream_id_;
382 const int status_; 382 const int status_;
383 const std::string description_; 383 const std::string description_;
384 384
385 DISALLOW_COPY_AND_ASSIGN(NetLogSpdyStreamErrorParameter); 385 DISALLOW_COPY_AND_ASSIGN(NetLogSpdyStreamErrorParameter);
386 }; 386 };
387 387
388 } // namespace net 388 } // namespace net
389 389
390 #endif // NET_SPDY_SPDY_STREAM_H_ 390 #endif // NET_SPDY_SPDY_STREAM_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_session_spdy3_unittest.cc ('k') | net/spdy/spdy_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698