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

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

Issue 485833002: HTTP2 draft 14 support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add ignore_result(). Created 6 years, 4 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_protocol.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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlNoSendLeaks); 529 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlNoSendLeaks);
530 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlEndToEnd); 530 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlEndToEnd);
531 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, StreamIdSpaceExhausted); 531 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, StreamIdSpaceExhausted);
532 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, UnstallRacesWithStreamCreation); 532 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, UnstallRacesWithStreamCreation);
533 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, GoAwayOnSessionFlowControlError); 533 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, GoAwayOnSessionFlowControlError);
534 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, 534 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest,
535 RejectPushedStreamExceedingConcurrencyLimit); 535 RejectPushedStreamExceedingConcurrencyLimit);
536 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, IgnoreReservedRemoteStreamsCount); 536 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, IgnoreReservedRemoteStreamsCount);
537 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, 537 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest,
538 CancelReservedStreamOnHeadersReceived); 538 CancelReservedStreamOnHeadersReceived);
539 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, RejectInvalidUnknownFrames);
539 540
540 typedef std::deque<base::WeakPtr<SpdyStreamRequest> > 541 typedef std::deque<base::WeakPtr<SpdyStreamRequest> >
541 PendingStreamRequestQueue; 542 PendingStreamRequestQueue;
542 543
543 struct ActiveStreamInfo { 544 struct ActiveStreamInfo {
544 ActiveStreamInfo(); 545 ActiveStreamInfo();
545 explicit ActiveStreamInfo(SpdyStream* stream); 546 explicit ActiveStreamInfo(SpdyStream* stream);
546 ~ActiveStreamInfo(); 547 ~ActiveStreamInfo();
547 548
548 SpdyStream* stream; 549 SpdyStream* stream;
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 bool unidirectional, 834 bool unidirectional,
834 const SpdyHeaderBlock& headers) OVERRIDE; 835 const SpdyHeaderBlock& headers) OVERRIDE;
835 virtual void OnSynReply( 836 virtual void OnSynReply(
836 SpdyStreamId stream_id, 837 SpdyStreamId stream_id,
837 bool fin, 838 bool fin,
838 const SpdyHeaderBlock& headers) OVERRIDE; 839 const SpdyHeaderBlock& headers) OVERRIDE;
839 virtual void OnHeaders( 840 virtual void OnHeaders(
840 SpdyStreamId stream_id, 841 SpdyStreamId stream_id,
841 bool fin, 842 bool fin,
842 const SpdyHeaderBlock& headers) OVERRIDE; 843 const SpdyHeaderBlock& headers) OVERRIDE;
844 virtual bool OnUnknownFrame(SpdyStreamId stream_id, int frame_type) OVERRIDE;
843 845
844 // SpdyFramerDebugVisitorInterface 846 // SpdyFramerDebugVisitorInterface
845 virtual void OnSendCompressedFrame( 847 virtual void OnSendCompressedFrame(
846 SpdyStreamId stream_id, 848 SpdyStreamId stream_id,
847 SpdyFrameType type, 849 SpdyFrameType type,
848 size_t payload_len, 850 size_t payload_len,
849 size_t frame_len) OVERRIDE; 851 size_t frame_len) OVERRIDE;
850 virtual void OnReceiveCompressedFrame( 852 virtual void OnReceiveCompressedFrame(
851 SpdyStreamId stream_id, 853 SpdyStreamId stream_id,
852 SpdyFrameType type, 854 SpdyFrameType type,
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1157 // Used for posting asynchronous IO tasks. We use this even though 1159 // Used for posting asynchronous IO tasks. We use this even though
1158 // SpdySession is refcounted because we don't need to keep the SpdySession 1160 // SpdySession is refcounted because we don't need to keep the SpdySession
1159 // alive if the last reference is within a RunnableMethod. Just revoke the 1161 // alive if the last reference is within a RunnableMethod. Just revoke the
1160 // method. 1162 // method.
1161 base::WeakPtrFactory<SpdySession> weak_factory_; 1163 base::WeakPtrFactory<SpdySession> weak_factory_;
1162 }; 1164 };
1163 1165
1164 } // namespace net 1166 } // namespace net
1165 1167
1166 #endif // NET_SPDY_SPDY_SESSION_H_ 1168 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_protocol.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698