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

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

Issue 1272283003: Add a new SpdyStream::Delegate method to handle trailers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add NOTREACHED Created 5 years, 4 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
« no previous file with comments | « net/spdy/spdy_stream_unittest.cc ('k') | net/spdy/spdy_test_util_common.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) 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
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
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_
OLDNEW
« no previous file with comments | « net/spdy/spdy_stream_unittest.cc ('k') | net/spdy/spdy_test_util_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698