OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_SESSION_H_ | 5 #ifndef NET_SPDY_SPDY_SESSION_H_ |
6 #define NET_SPDY_SPDY_SESSION_H_ | 6 #define NET_SPDY_SPDY_SESSION_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <list> | 10 #include <list> |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
518 base::TimeTicks received_data_time_; | 518 base::TimeTicks received_data_time_; |
519 | 519 |
520 // Indicate if we have already scheduled a delayed task to send a trailing | 520 // Indicate if we have already scheduled a delayed task to send a trailing |
521 // ping (and we never have more than one scheduled at a time). | 521 // ping (and we never have more than one scheduled at a time). |
522 bool trailing_ping_pending_; | 522 bool trailing_ping_pending_; |
523 | 523 |
524 // Indicate if we have already scheduled a delayed task to check the ping | 524 // Indicate if we have already scheduled a delayed task to check the ping |
525 // status. | 525 // status. |
526 bool check_ping_status_pending_; | 526 bool check_ping_status_pending_; |
527 | 527 |
528 // Indicate if the last data we sent was a ping (generally, a trailing ping). | 528 // Indicate if we need to send a ping (generally, a trailing ping). This helps |
529 // This helps us to decide if we need yet another trailing ping, or if it | 529 // us to decide if we need yet another trailing ping, or if it would be a |
530 // would be a waste of effort (and MUST not be done). | 530 // waste of effort (and MUST not be done). |
531 bool last_sent_was_ping_; | 531 bool need_to_send_ping_; |
jar (doing other things)
2011/10/17 22:09:28
Nice improvement on comments!
ramant (doing other things)
2011/10/17 23:40:57
Done.
| |
532 | 532 |
533 // Initial send window size for the session; can be changed by an | 533 // Initial send window size for the session; can be changed by an |
534 // arriving SETTINGS frame; newly created streams use this value for the | 534 // arriving SETTINGS frame; newly created streams use this value for the |
535 // initial send window size. | 535 // initial send window size. |
536 int initial_send_window_size_; | 536 int initial_send_window_size_; |
537 | 537 |
538 // Initial receive window size for the session; there are plans to add a | 538 // Initial receive window size for the session; there are plans to add a |
539 // command line switch that would cause a SETTINGS frame with window size | 539 // command line switch that would cause a SETTINGS frame with window size |
540 // announcement to be sent on startup; newly created streams will use | 540 // announcement to be sent on startup; newly created streams will use |
541 // this value for the initial receive window size. | 541 // this value for the initial receive window size. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
602 const spdy::SpdyControlFlags flags_; | 602 const spdy::SpdyControlFlags flags_; |
603 const spdy::SpdyStreamId id_; | 603 const spdy::SpdyStreamId id_; |
604 const spdy::SpdyStreamId associated_stream_; | 604 const spdy::SpdyStreamId associated_stream_; |
605 | 605 |
606 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter); | 606 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter); |
607 }; | 607 }; |
608 | 608 |
609 } // namespace net | 609 } // namespace net |
610 | 610 |
611 #endif // NET_SPDY_SPDY_SESSION_H_ | 611 #endif // NET_SPDY_SPDY_SESSION_H_ |
OLD | NEW |