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 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 | 415 |
416 void ProcessPendingCreateStreams(); | 416 void ProcessPendingCreateStreams(); |
417 int CreateStreamImpl( | 417 int CreateStreamImpl( |
418 const GURL& url, | 418 const GURL& url, |
419 RequestPriority priority, | 419 RequestPriority priority, |
420 scoped_refptr<SpdyStream>* spdy_stream, | 420 scoped_refptr<SpdyStream>* spdy_stream, |
421 const BoundNetLog& stream_net_log); | 421 const BoundNetLog& stream_net_log); |
422 | 422 |
423 // IO Callbacks | 423 // IO Callbacks |
424 void OnReadComplete(int result); | 424 void OnReadComplete(int result); |
| 425 bool ProcessBytesRead(int bytes_read); |
425 void OnWriteComplete(int result); | 426 void OnWriteComplete(int result); |
426 | 427 |
427 // Send relevant SETTINGS. This is generally called on connection setup. | 428 // Send relevant SETTINGS. This is generally called on connection setup. |
428 void SendInitialSettings(); | 429 void SendInitialSettings(); |
429 | 430 |
430 // Helper method to send SETTINGS a frame. | 431 // Helper method to send SETTINGS a frame. |
431 void SendSettings(const SettingsMap& settings); | 432 void SendSettings(const SettingsMap& settings); |
432 | 433 |
433 // Handle SETTING. Either when we send settings, or when we receive a | 434 // Handle SETTING. Either when we send settings, or when we receive a |
434 // SETTINGS control frame, update our SpdySession accordingly. | 435 // SETTINGS control frame, update our SpdySession accordingly. |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 // This SPDY proxy is allowed to push resources from origins that are | 733 // This SPDY proxy is allowed to push resources from origins that are |
733 // different from those of their associated streams. | 734 // different from those of their associated streams. |
734 HostPortPair trusted_spdy_proxy_; | 735 HostPortPair trusted_spdy_proxy_; |
735 | 736 |
736 TimeFunc time_func_; | 737 TimeFunc time_func_; |
737 }; | 738 }; |
738 | 739 |
739 } // namespace net | 740 } // namespace net |
740 | 741 |
741 #endif // NET_SPDY_SPDY_SESSION_H_ | 742 #endif // NET_SPDY_SPDY_SESSION_H_ |
OLD | NEW |