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

Side by Side Diff: net/spdy/chromium/spdy_session.h

Issue 2909653002: SpdySession: Combine three frames into a single packet. (Closed)
Patch Set: Combine frames in tests. Created 3 years, 6 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) 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_CHROMIUM_SPDY_SESSION_H_ 5 #ifndef NET_SPDY_CHROMIUM_SPDY_SESSION_H_
6 #define NET_SPDY_CHROMIUM_SPDY_SESSION_H_ 6 #define NET_SPDY_CHROMIUM_SPDY_SESSION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 int DoWriteComplete(int result); 756 int DoWriteComplete(int result);
757 757
758 // TODO(akalin): Rename the Send* and Write* functions below to 758 // TODO(akalin): Rename the Send* and Write* functions below to
759 // Enqueue*. 759 // Enqueue*.
760 760
761 // Send initial data. Called when a connection is successfully 761 // Send initial data. Called when a connection is successfully
762 // established in InitializeWithSocket() and 762 // established in InitializeWithSocket() and
763 // |enable_sending_initial_data_| is true. 763 // |enable_sending_initial_data_| is true.
764 void SendInitialData(); 764 void SendInitialData();
765 765
766 // Helper method to send a SETTINGS frame.
767 void SendSettings(const SettingsMap& settings);
768
769 // Handle SETTING. Either when we send settings, or when we receive a 766 // Handle SETTING. Either when we send settings, or when we receive a
770 // SETTINGS control frame, update our SpdySession accordingly. 767 // SETTINGS control frame, update our SpdySession accordingly.
771 void HandleSetting(uint32_t id, uint32_t value); 768 void HandleSetting(uint32_t id, uint32_t value);
772 769
773 // Adjust the send window size of all ActiveStreams and PendingStreamRequests. 770 // Adjust the send window size of all ActiveStreams and PendingStreamRequests.
774 void UpdateStreamsSendWindowSize(int32_t delta_window_size); 771 void UpdateStreamsSendWindowSize(int32_t delta_window_size);
775 772
776 // Send the PING (preface-PING) frame. 773 // Send the PING (preface-PING) frame.
777 void SendPrefacePingIfNoneInFlight(); 774 void SendPrefacePingIfNoneInFlight();
778 775
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 // Used for posting asynchronous IO tasks. We use this even though 1223 // Used for posting asynchronous IO tasks. We use this even though
1227 // SpdySession is refcounted because we don't need to keep the SpdySession 1224 // SpdySession is refcounted because we don't need to keep the SpdySession
1228 // alive if the last reference is within a RunnableMethod. Just revoke the 1225 // alive if the last reference is within a RunnableMethod. Just revoke the
1229 // method. 1226 // method.
1230 base::WeakPtrFactory<SpdySession> weak_factory_; 1227 base::WeakPtrFactory<SpdySession> weak_factory_;
1231 }; 1228 };
1232 1229
1233 } // namespace net 1230 } // namespace net
1234 1231
1235 #endif // NET_SPDY_CHROMIUM_SPDY_SESSION_H_ 1232 #endif // NET_SPDY_CHROMIUM_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « net/spdy/chromium/spdy_network_transaction_unittest.cc ('k') | net/spdy/chromium/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698