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

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

Issue 14232014: Correctly handle SPDY GOAWAY frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | net/spdy/spdy_session.cc » ('j') | net/spdy/spdy_session.cc » ('J')
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 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 // Returns true if successful. 603 // Returns true if successful.
604 bool Respond(const SpdyHeaderBlock& headers, 604 bool Respond(const SpdyHeaderBlock& headers,
605 const scoped_refptr<SpdyStream> stream); 605 const scoped_refptr<SpdyStream> stream);
606 606
607 void RecordPingRTTHistogram(base::TimeDelta duration); 607 void RecordPingRTTHistogram(base::TimeDelta duration);
608 void RecordHistograms(); 608 void RecordHistograms();
609 void RecordProtocolErrorHistogram(SpdyProtocolErrorDetails details); 609 void RecordProtocolErrorHistogram(SpdyProtocolErrorDetails details);
610 610
611 // Closes all streams. Used as part of shutdown. 611 // Closes all streams. Used as part of shutdown.
612 void CloseAllStreams(net::Error status); 612 void CloseAllStreams(net::Error status);
613 void CloseAllStreamsAfter(SpdyStreamId last_good_stream_id,
akalin 2013/04/17 21:14:20 add a comment for CloseAllStreamsAfter? Perhaps do
Ryan Hamilton 2013/04/18 00:30:40 Done.
614 net::Error status);
613 615
614 void LogAbandonedStream(const scoped_refptr<SpdyStream>& stream, 616 void LogAbandonedStream(const scoped_refptr<SpdyStream>& stream,
615 net::Error status); 617 net::Error status);
616 618
617 // Invokes a user callback for stream creation. We provide this method so it 619 // Invokes a user callback for stream creation. We provide this method so it
618 // can be deferred to the MessageLoop, so we avoid re-entrancy problems. 620 // can be deferred to the MessageLoop, so we avoid re-entrancy problems.
619 void CompleteStreamRequest(SpdyStreamRequest* pending_request); 621 void CompleteStreamRequest(SpdyStreamRequest* pending_request);
620 622
621 // Remove old unclaimed pushed streams. 623 // Remove old unclaimed pushed streams.
622 void DeleteExpiredPushedStreams(); 624 void DeleteExpiredPushedStreams();
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 // This SPDY proxy is allowed to push resources from origins that are 909 // This SPDY proxy is allowed to push resources from origins that are
908 // different from those of their associated streams. 910 // different from those of their associated streams.
909 HostPortPair trusted_spdy_proxy_; 911 HostPortPair trusted_spdy_proxy_;
910 912
911 TimeFunc time_func_; 913 TimeFunc time_func_;
912 }; 914 };
913 915
914 } // namespace net 916 } // namespace net
915 917
916 #endif // NET_SPDY_SPDY_SESSION_H_ 918 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_session.cc » ('j') | net/spdy/spdy_session.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698