OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_STREAM_H_ | 5 #ifndef NET_SPDY_SPDY_STREAM_H_ |
6 #define NET_SPDY_SPDY_STREAM_H_ | 6 #define NET_SPDY_SPDY_STREAM_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 int DoOpen(int result); | 293 int DoOpen(int result); |
294 | 294 |
295 // Update the histograms. Can safely be called repeatedly, but should only | 295 // Update the histograms. Can safely be called repeatedly, but should only |
296 // be called after the stream has completed. | 296 // be called after the stream has completed. |
297 void UpdateHistograms(); | 297 void UpdateHistograms(); |
298 | 298 |
299 // When a server pushed stream is first created, this function is posted on | 299 // When a server pushed stream is first created, this function is posted on |
300 // the MessageLoop to replay all the data that the server has already sent. | 300 // the MessageLoop to replay all the data that the server has already sent. |
301 void PushedStreamReplayData(); | 301 void PushedStreamReplayData(); |
302 | 302 |
303 // Extracts the URL from the various fields in |headers|. | |
304 GURL GetUrlFromHeaderBlock( | |
305 const linked_ptr<SpdyHeaderBlock>& headers) const; | |
306 | |
307 // There is a small period of time between when a server pushed stream is | 303 // There is a small period of time between when a server pushed stream is |
308 // first created, and the pushed data is replayed. Any data received during | 304 // first created, and the pushed data is replayed. Any data received during |
309 // this time should continue to be buffered. | 305 // this time should continue to be buffered. |
310 bool continue_buffering_data_; | 306 bool continue_buffering_data_; |
311 | 307 |
312 SpdyStreamId stream_id_; | 308 SpdyStreamId stream_id_; |
313 std::string path_; | 309 std::string path_; |
314 int priority_; | 310 int priority_; |
315 size_t slot_; | 311 size_t slot_; |
316 | 312 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 const SpdyStreamId stream_id_; | 377 const SpdyStreamId stream_id_; |
382 const int status_; | 378 const int status_; |
383 const std::string description_; | 379 const std::string description_; |
384 | 380 |
385 DISALLOW_COPY_AND_ASSIGN(NetLogSpdyStreamErrorParameter); | 381 DISALLOW_COPY_AND_ASSIGN(NetLogSpdyStreamErrorParameter); |
386 }; | 382 }; |
387 | 383 |
388 } // namespace net | 384 } // namespace net |
389 | 385 |
390 #endif // NET_SPDY_SPDY_STREAM_H_ | 386 #endif // NET_SPDY_SPDY_STREAM_H_ |
OLD | NEW |