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

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

Issue 959743002: Account for HTTP/2 padding in receive windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more mock implementation. Created 5 years, 9 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
« no previous file with comments | « net/spdy/spdy_framer_test.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 // Allow tests to access our innards for testing purposes. 533 // Allow tests to access our innards for testing purposes.
534 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, ClientPing); 534 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, ClientPing);
535 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, FailedPing); 535 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, FailedPing);
536 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, GetActivePushStream); 536 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, GetActivePushStream);
537 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, DeleteExpiredPushStreams); 537 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, DeleteExpiredPushStreams);
538 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, ProtocolNegotiation); 538 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, ProtocolNegotiation);
539 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, ClearSettings); 539 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, ClearSettings);
540 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, AdjustRecvWindowSize); 540 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, AdjustRecvWindowSize);
541 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, AdjustSendWindowSize); 541 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, AdjustSendWindowSize);
542 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlInactiveStream); 542 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlInactiveStream);
543 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlPadding);
543 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlNoReceiveLeaks); 544 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlNoReceiveLeaks);
544 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlNoSendLeaks); 545 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlNoSendLeaks);
545 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlEndToEnd); 546 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlEndToEnd);
546 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, StreamIdSpaceExhausted); 547 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, StreamIdSpaceExhausted);
547 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, UnstallRacesWithStreamCreation); 548 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, UnstallRacesWithStreamCreation);
548 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, GoAwayOnSessionFlowControlError); 549 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, GoAwayOnSessionFlowControlError);
549 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, 550 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest,
550 RejectPushedStreamExceedingConcurrencyLimit); 551 RejectPushedStreamExceedingConcurrencyLimit);
551 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, IgnoreReservedRemoteStreamsCount); 552 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, IgnoreReservedRemoteStreamsCount);
552 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, 553 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest,
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 void OnRstStream(SpdyStreamId stream_id, SpdyRstStreamStatus status) override; 827 void OnRstStream(SpdyStreamId stream_id, SpdyRstStreamStatus status) override;
827 void OnGoAway(SpdyStreamId last_accepted_stream_id, 828 void OnGoAway(SpdyStreamId last_accepted_stream_id,
828 SpdyGoAwayStatus status) override; 829 SpdyGoAwayStatus status) override;
829 void OnDataFrameHeader(SpdyStreamId stream_id, 830 void OnDataFrameHeader(SpdyStreamId stream_id,
830 size_t length, 831 size_t length,
831 bool fin) override; 832 bool fin) override;
832 void OnStreamFrameData(SpdyStreamId stream_id, 833 void OnStreamFrameData(SpdyStreamId stream_id,
833 const char* data, 834 const char* data,
834 size_t len, 835 size_t len,
835 bool fin) override; 836 bool fin) override;
837 void OnStreamPadding(SpdyStreamId stream_id, size_t len) override;
836 void OnSettings(bool clear_persisted) override; 838 void OnSettings(bool clear_persisted) override;
837 void OnSetting(SpdySettingsIds id, uint8 flags, uint32 value) override; 839 void OnSetting(SpdySettingsIds id, uint8 flags, uint32 value) override;
838 void OnWindowUpdate(SpdyStreamId stream_id, 840 void OnWindowUpdate(SpdyStreamId stream_id,
839 uint32 delta_window_size) override; 841 uint32 delta_window_size) override;
840 void OnPushPromise(SpdyStreamId stream_id, 842 void OnPushPromise(SpdyStreamId stream_id,
841 SpdyStreamId promised_stream_id, 843 SpdyStreamId promised_stream_id,
842 const SpdyHeaderBlock& headers) override; 844 const SpdyHeaderBlock& headers) override;
843 void OnSynStream(SpdyStreamId stream_id, 845 void OnSynStream(SpdyStreamId stream_id,
844 SpdyStreamId associated_stream_id, 846 SpdyStreamId associated_stream_id,
845 SpdyPriority priority, 847 SpdyPriority priority,
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 // Used for posting asynchronous IO tasks. We use this even though 1177 // Used for posting asynchronous IO tasks. We use this even though
1176 // SpdySession is refcounted because we don't need to keep the SpdySession 1178 // SpdySession is refcounted because we don't need to keep the SpdySession
1177 // alive if the last reference is within a RunnableMethod. Just revoke the 1179 // alive if the last reference is within a RunnableMethod. Just revoke the
1178 // method. 1180 // method.
1179 base::WeakPtrFactory<SpdySession> weak_factory_; 1181 base::WeakPtrFactory<SpdySession> weak_factory_;
1180 }; 1182 };
1181 1183
1182 } // namespace net 1184 } // namespace net
1183 1185
1184 #endif // NET_SPDY_SPDY_SESSION_H_ 1186 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_framer_test.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698