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

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

Issue 2596703002: http2: Update priorities of pushed streams (Closed)
Patch Set: Created 3 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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 // Construct a SPDY WINDOW_UPDATE frame. 329 // Construct a SPDY WINDOW_UPDATE frame.
330 // Returns the constructed frame. The caller takes ownership of the frame. 330 // Returns the constructed frame. The caller takes ownership of the frame.
331 SpdySerializedFrame ConstructSpdyWindowUpdate(SpdyStreamId stream_id, 331 SpdySerializedFrame ConstructSpdyWindowUpdate(SpdyStreamId stream_id,
332 uint32_t delta_window_size); 332 uint32_t delta_window_size);
333 333
334 // Construct a SPDY RST_STREAM frame. 334 // Construct a SPDY RST_STREAM frame.
335 // Returns the constructed frame. The caller takes ownership of the frame. 335 // Returns the constructed frame. The caller takes ownership of the frame.
336 SpdySerializedFrame ConstructSpdyRstStream(SpdyStreamId stream_id, 336 SpdySerializedFrame ConstructSpdyRstStream(SpdyStreamId stream_id,
337 SpdyRstStreamStatus status); 337 SpdyRstStreamStatus status);
338 338
339 // Construct a PRIORITY frame. The weight is derived from |request_priority|.
340 // Returns the constructed frame. The caller takes ownership of the frame.
341 SpdySerializedFrame ConstructSpdyPriority(SpdyStreamId stream_id,
342 SpdyStreamId parent_stream_id,
343 RequestPriority request_priority,
344 bool exclusive);
345
339 // Constructs a standard SPDY GET HEADERS frame for |url| with header 346 // Constructs a standard SPDY GET HEADERS frame for |url| with header
340 // compression. 347 // compression.
341 // |extra_headers| are the extra header-value pairs, which typically 348 // |extra_headers| are the extra header-value pairs, which typically
342 // will vary the most between calls. 349 // will vary the most between calls.
343 // Returns a SpdySerializedFrame. 350 // Returns a SpdySerializedFrame.
344 SpdySerializedFrame ConstructSpdyGet(const char* const url, 351 SpdySerializedFrame ConstructSpdyGet(const char* const url,
345 SpdyStreamId stream_id, 352 SpdyStreamId stream_id,
346 RequestPriority request_priority); 353 RequestPriority request_priority);
347 354
348 // Constructs a standard SPDY GET HEADERS frame with header compression. 355 // Constructs a standard SPDY GET HEADERS frame with header compression.
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 521
515 GURL default_url_; 522 GURL default_url_;
516 523
517 // Track a FIFO list of the stream_id of all created requests by priority. 524 // Track a FIFO list of the stream_id of all created requests by priority.
518 std::map<int, std::vector<int>> priority_to_stream_id_list_; 525 std::map<int, std::vector<int>> priority_to_stream_id_list_;
519 }; 526 };
520 527
521 } // namespace net 528 } // namespace net
522 529
523 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ 530 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698