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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 const char* location); | 456 const char* location); |
457 | 457 |
458 SpdyFrame* ConstructInitialSpdyPushFrame(scoped_ptr<SpdyHeaderBlock> headers, | 458 SpdyFrame* ConstructInitialSpdyPushFrame(scoped_ptr<SpdyHeaderBlock> headers, |
459 int stream_id, | 459 int stream_id, |
460 int associated_stream_id); | 460 int associated_stream_id); |
461 | 461 |
462 SpdyFrame* ConstructSpdyPushHeaders(int stream_id, | 462 SpdyFrame* ConstructSpdyPushHeaders(int stream_id, |
463 const char* const extra_headers[], | 463 const char* const extra_headers[], |
464 int extra_header_count); | 464 int extra_header_count); |
465 | 465 |
| 466 SpdyFrame* ConstructSpdyHeaderFrame(int stream_id, |
| 467 const char* const headers[], |
| 468 int header_count); |
| 469 |
466 // Construct a SPDY syn (HEADERS or SYN_STREAM, depending on protocol | 470 // Construct a SPDY syn (HEADERS or SYN_STREAM, depending on protocol |
467 // version) carrying exactly the given headers and priority. | 471 // version) carrying exactly the given headers and priority. |
468 SpdyFrame* ConstructSpdySyn(int stream_id, | 472 SpdyFrame* ConstructSpdySyn(int stream_id, |
469 const SpdyHeaderBlock& headers, | 473 const SpdyHeaderBlock& headers, |
470 RequestPriority priority, | 474 RequestPriority priority, |
471 bool compressed, | 475 bool compressed, |
472 bool fin) const; | 476 bool fin) const; |
473 | 477 |
474 // Construct a SPDY reply (HEADERS or SYN_REPLY, depending on protocol | 478 // Construct a SPDY reply (HEADERS or SYN_REPLY, depending on protocol |
475 // version) carrying exactly the given headers, and the default priority | 479 // version) carrying exactly the given headers, and the default priority |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 int64* content_length) const; | 586 int64* content_length) const; |
583 | 587 |
584 const NextProto protocol_; | 588 const NextProto protocol_; |
585 const SpdyMajorVersion spdy_version_; | 589 const SpdyMajorVersion spdy_version_; |
586 GURL default_url_; | 590 GURL default_url_; |
587 }; | 591 }; |
588 | 592 |
589 } // namespace net | 593 } // namespace net |
590 | 594 |
591 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 595 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
OLD | NEW |