| 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_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 <algorithm> | 9 #include <algorithm> |
| 10 #include <list> | 10 #include <list> |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 scoped_refptr<SpdyStream>* spdy_stream, | 338 scoped_refptr<SpdyStream>* spdy_stream, |
| 339 const BoundNetLog& stream_net_log); | 339 const BoundNetLog& stream_net_log); |
| 340 | 340 |
| 341 // IO Callbacks | 341 // IO Callbacks |
| 342 void OnReadComplete(int result); | 342 void OnReadComplete(int result); |
| 343 void OnWriteComplete(int result); | 343 void OnWriteComplete(int result); |
| 344 | 344 |
| 345 // Send relevant SETTINGS. This is generally called on connection setup. | 345 // Send relevant SETTINGS. This is generally called on connection setup. |
| 346 void SendSettings(); | 346 void SendSettings(); |
| 347 | 347 |
| 348 // Handle SETTINGS. Either when we send settings, or when we receive a | 348 // Handle SETTING. Either when we send settings, or when we receive a |
| 349 // SETTINGS control frame, update our SpdySession accordingly. | 349 // SETTINGS control frame, update our SpdySession accordingly. |
| 350 void HandleSettings(const spdy::SpdySettings& settings); | |
| 351 void HandleSetting(uint32 id, uint32 value); | 350 void HandleSetting(uint32 id, uint32 value); |
| 352 | 351 |
| 353 // Adjust the send window size of all ActiveStreams and PendingCreateStreams. | 352 // Adjust the send window size of all ActiveStreams and PendingCreateStreams. |
| 354 void UpdateStreamsSendWindowSize(int32 delta_window_size); | 353 void UpdateStreamsSendWindowSize(int32 delta_window_size); |
| 355 | 354 |
| 356 // Send the PING (preface-PING and trailing-PING) frames. | 355 // Send the PING (preface-PING and trailing-PING) frames. |
| 357 void SendPrefacePingIfNoneInFlight(); | 356 void SendPrefacePingIfNoneInFlight(); |
| 358 | 357 |
| 359 // Send PING if there are no PINGs in flight and we haven't heard from server. | 358 // Send PING if there are no PINGs in flight and we haven't heard from server. |
| 360 void SendPrefacePing(); | 359 void SendPrefacePing(); |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 | 692 |
| 694 const int status_; | 693 const int status_; |
| 695 const std::string description_; | 694 const std::string description_; |
| 696 | 695 |
| 697 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySessionCloseParameter); | 696 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySessionCloseParameter); |
| 698 }; | 697 }; |
| 699 | 698 |
| 700 } // namespace net | 699 } // namespace net |
| 701 | 700 |
| 702 #endif // NET_SPDY_SPDY_SESSION_H_ | 701 #endif // NET_SPDY_SPDY_SESSION_H_ |
| OLD | NEW |