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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 int associated_stream_id, | 450 int associated_stream_id, |
451 const char* url); | 451 const char* url); |
452 SpdyFrame* ConstructSpdyPush(const char* const extra_headers[], | 452 SpdyFrame* ConstructSpdyPush(const char* const extra_headers[], |
453 int extra_header_count, | 453 int extra_header_count, |
454 int stream_id, | 454 int stream_id, |
455 int associated_stream_id, | 455 int associated_stream_id, |
456 const char* url, | 456 const char* url, |
457 const char* status, | 457 const char* status, |
458 const char* location); | 458 const char* location); |
459 | 459 |
| 460 SpdyFrame* ConstructInitialSpdyPushFrame(scoped_ptr<SpdyHeaderBlock> headers, |
| 461 int stream_id, |
| 462 int associated_stream_id); |
| 463 |
460 SpdyFrame* ConstructSpdyPushHeaders(int stream_id, | 464 SpdyFrame* ConstructSpdyPushHeaders(int stream_id, |
461 const char* const extra_headers[], | 465 const char* const extra_headers[], |
462 int extra_header_count); | 466 int extra_header_count); |
463 | 467 |
464 // Constructs a standard SPDY SYN_REPLY frame to match the SPDY GET. | 468 // Constructs a standard SPDY SYN_REPLY frame to match the SPDY GET. |
465 // |extra_headers| are the extra header-value pairs, which typically | 469 // |extra_headers| are the extra header-value pairs, which typically |
466 // will vary the most between calls. | 470 // will vary the most between calls. |
467 // Returns a SpdyFrame. | 471 // Returns a SpdyFrame. |
468 SpdyFrame* ConstructSpdyGetSynReply(const char* const extra_headers[], | 472 SpdyFrame* ConstructSpdyGetSynReply(const char* const extra_headers[], |
469 int extra_header_count, | 473 int extra_header_count, |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 base::StringPiece url, | 557 base::StringPiece url, |
554 int64* content_length) const; | 558 int64* content_length) const; |
555 | 559 |
556 const NextProto protocol_; | 560 const NextProto protocol_; |
557 const SpdyMajorVersion spdy_version_; | 561 const SpdyMajorVersion spdy_version_; |
558 }; | 562 }; |
559 | 563 |
560 } // namespace net | 564 } // namespace net |
561 | 565 |
562 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 566 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
OLD | NEW |