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

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

Issue 17382012: [SPDY] Refactor SpdyStream's handling of response headers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More updates from rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_proxy_client_socket.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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 // Removes this session from the session pool. 629 // Removes this session from the session pool.
630 void RemoveFromPool(); 630 void RemoveFromPool();
631 631
632 // Check if we have a pending pushed-stream for this url 632 // Check if we have a pending pushed-stream for this url
633 // Returns the stream if found (and returns it from the pending 633 // Returns the stream if found (and returns it from the pending
634 // list), returns NULL otherwise. 634 // list), returns NULL otherwise.
635 base::WeakPtr<SpdyStream> GetActivePushStream(const std::string& url); 635 base::WeakPtr<SpdyStream> GetActivePushStream(const std::string& url);
636 636
637 // Calls OnResponseReceived(). 637 // Calls OnResponseReceived().
638 // Returns true if successful. 638 // Returns true if successful.
639 bool Respond(const SpdyHeaderBlock& headers, SpdyStream* stream); 639 bool Respond(const SpdyHeaderBlock& response_headers,
640 base::Time response_time,
641 base::TimeTicks recv_first_byte_time,
642 SpdyStream* stream);
640 643
641 void RecordPingRTTHistogram(base::TimeDelta duration); 644 void RecordPingRTTHistogram(base::TimeDelta duration);
642 void RecordHistograms(); 645 void RecordHistograms();
643 void RecordProtocolErrorHistogram(SpdyProtocolErrorDetails details); 646 void RecordProtocolErrorHistogram(SpdyProtocolErrorDetails details);
644 647
645 // Closes all active streams with stream id's greater than 648 // Closes all active streams with stream id's greater than
646 // |last_good_stream_id|, as well as any created or pending streams. 649 // |last_good_stream_id|, as well as any created or pending streams.
647 // Does not close unclaimed push streams. 650 // Does not close unclaimed push streams.
648 void CloseAllStreamsAfter(SpdyStreamId last_good_stream_id, 651 void CloseAllStreamsAfter(SpdyStreamId last_good_stream_id,
649 Error status); 652 Error status);
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 // This SPDY proxy is allowed to push resources from origins that are 992 // This SPDY proxy is allowed to push resources from origins that are
990 // different from those of their associated streams. 993 // different from those of their associated streams.
991 HostPortPair trusted_spdy_proxy_; 994 HostPortPair trusted_spdy_proxy_;
992 995
993 TimeFunc time_func_; 996 TimeFunc time_func_;
994 }; 997 };
995 998
996 } // namespace net 999 } // namespace net
997 1000
998 #endif // NET_SPDY_SPDY_SESSION_H_ 1001 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_proxy_client_socket.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698