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

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

Issue 1326503003: Added a net::BidirectionalStream to expose a bidirectional streaming interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Misha's comments Created 4 years, 12 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
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 int associated_stream_id); 440 int associated_stream_id);
441 441
442 SpdyFrame* ConstructSpdyPushHeaders(int stream_id, 442 SpdyFrame* ConstructSpdyPushHeaders(int stream_id,
443 const char* const extra_headers[], 443 const char* const extra_headers[],
444 int extra_header_count); 444 int extra_header_count);
445 445
446 SpdyFrame* ConstructSpdyHeaderFrame(int stream_id, 446 SpdyFrame* ConstructSpdyHeaderFrame(int stream_id,
447 const char* const headers[], 447 const char* const headers[],
448 int header_count); 448 int header_count);
449 449
450 // Constructs a SPDY header frame with END_STREAM flag set to |fin|.
451 SpdyFrame* ConstructSpdyHeaderFrame(int stream_id,
452 const char* const headers[],
453 int header_count,
454 bool fin);
455
450 // Construct a SPDY syn (HEADERS or SYN_STREAM, depending on protocol 456 // Construct a SPDY syn (HEADERS or SYN_STREAM, depending on protocol
451 // version) carrying exactly the given headers and priority. 457 // version) carrying exactly the given headers and priority.
452 SpdyFrame* ConstructSpdySyn(int stream_id, 458 SpdyFrame* ConstructSpdySyn(int stream_id,
453 const SpdyHeaderBlock& headers, 459 const SpdyHeaderBlock& headers,
454 RequestPriority priority, 460 RequestPriority priority,
455 bool compressed, 461 bool compressed,
456 bool fin); 462 bool fin);
457 463
458 // Construct a SPDY reply (HEADERS or SYN_REPLY, depending on protocol 464 // Construct a SPDY reply (HEADERS or SYN_REPLY, depending on protocol
459 // version) carrying exactly the given headers, and the default priority 465 // version) carrying exactly the given headers, and the default priority
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 GURL default_url_; 579 GURL default_url_;
574 bool dependency_priorities_; 580 bool dependency_priorities_;
575 581
576 // Track a FIFO list of the stream_id of all created requests by priority. 582 // Track a FIFO list of the stream_id of all created requests by priority.
577 std::map<int, std::vector<int>> priority_to_stream_id_list_; 583 std::map<int, std::vector<int>> priority_to_stream_id_list_;
578 }; 584 };
579 585
580 } // namespace net 586 } // namespace net
581 587
582 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ 588 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698