OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_TEST_UTIL_COMMON_H_ | 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
6 #define NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 6 #define NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 SpdyFrame* ConstructSpdyWindowUpdate( | 393 SpdyFrame* ConstructSpdyWindowUpdate( |
394 SpdyStreamId stream_id, | 394 SpdyStreamId stream_id, |
395 uint32 delta_window_size) const; | 395 uint32 delta_window_size) const; |
396 | 396 |
397 // Construct a SPDY RST_STREAM frame. | 397 // Construct a SPDY RST_STREAM frame. |
398 // Returns the constructed frame. The caller takes ownership of the frame. | 398 // Returns the constructed frame. The caller takes ownership of the frame. |
399 SpdyFrame* ConstructSpdyRstStream(SpdyStreamId stream_id, | 399 SpdyFrame* ConstructSpdyRstStream(SpdyStreamId stream_id, |
400 SpdyRstStreamStatus status) const; | 400 SpdyRstStreamStatus status) const; |
401 | 401 |
402 // Constructs a standard SPDY GET SYN frame, optionally compressed | 402 // Constructs a standard SPDY GET SYN frame, optionally compressed |
403 // for the url |url|. | 403 // for |url|. |
404 // |extra_headers| are the extra header-value pairs, which typically | 404 // |extra_headers| are the extra header-value pairs, which typically |
405 // will vary the most between calls. | 405 // will vary the most between calls. |
406 // Returns a SpdyFrame. | 406 // Returns a SpdyFrame. |
407 SpdyFrame* ConstructSpdyGet(const char* const url, | 407 SpdyFrame* ConstructSpdyGet(const char* const url, |
408 bool compressed, | 408 bool compressed, |
409 SpdyStreamId stream_id, | 409 SpdyStreamId stream_id, |
410 RequestPriority request_priority) const; | 410 RequestPriority request_priority) const; |
411 | 411 |
412 SpdyFrame* ConstructSpdyGetForProxy(const char* const url, | 412 SpdyFrame* ConstructSpdyGetForProxy(const char* const url, |
413 bool compressed, | 413 bool compressed, |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 base::StringPiece url, | 545 base::StringPiece url, |
546 int64* content_length) const; | 546 int64* content_length) const; |
547 | 547 |
548 const NextProto protocol_; | 548 const NextProto protocol_; |
549 const SpdyMajorVersion spdy_version_; | 549 const SpdyMajorVersion spdy_version_; |
550 }; | 550 }; |
551 | 551 |
552 } // namespace net | 552 } // namespace net |
553 | 553 |
554 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 554 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
OLD | NEW |