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

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

Issue 1346133004: Remove SpdySession::GetSSLClientSocket (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | 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 936 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 int64 pings_in_flight() const { return pings_in_flight_; } 947 int64 pings_in_flight() const { return pings_in_flight_; }
948 948
949 SpdyPingId next_ping_id() const { return next_ping_id_; } 949 SpdyPingId next_ping_id() const { return next_ping_id_; }
950 950
951 base::TimeTicks last_activity_time() const { return last_activity_time_; } 951 base::TimeTicks last_activity_time() const { return last_activity_time_; }
952 952
953 bool check_ping_status_pending() const { return check_ping_status_pending_; } 953 bool check_ping_status_pending() const { return check_ping_status_pending_; }
954 954
955 size_t max_concurrent_streams() const { return max_concurrent_streams_; } 955 size_t max_concurrent_streams() const { return max_concurrent_streams_; }
956 956
957 // Returns the SSLClientSocket that this SPDY session sits on top of,
958 // or NULL, if the transport is not SSL.
959 SSLClientSocket* GetSSLClientSocket() const;
960
961 // Whether Do{Read,Write}Loop() is in the call stack. Useful for 957 // Whether Do{Read,Write}Loop() is in the call stack. Useful for
962 // making sure we don't destroy ourselves prematurely in that case. 958 // making sure we don't destroy ourselves prematurely in that case.
963 bool in_io_loop_; 959 bool in_io_loop_;
964 960
965 // The key used to identify this session. 961 // The key used to identify this session.
966 const SpdySessionKey spdy_session_key_; 962 const SpdySessionKey spdy_session_key_;
967 963
968 // Set set of SpdySessionKeys for which this session has serviced 964 // Set set of SpdySessionKeys for which this session has serviced
969 // requests. 965 // requests.
970 std::set<SpdySessionKey> pooled_aliases_; 966 std::set<SpdySessionKey> pooled_aliases_;
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1185 // Used for posting asynchronous IO tasks. We use this even though 1181 // Used for posting asynchronous IO tasks. We use this even though
1186 // SpdySession is refcounted because we don't need to keep the SpdySession 1182 // SpdySession is refcounted because we don't need to keep the SpdySession
1187 // alive if the last reference is within a RunnableMethod. Just revoke the 1183 // alive if the last reference is within a RunnableMethod. Just revoke the
1188 // method. 1184 // method.
1189 base::WeakPtrFactory<SpdySession> weak_factory_; 1185 base::WeakPtrFactory<SpdySession> weak_factory_;
1190 }; 1186 };
1191 1187
1192 } // namespace net 1188 } // namespace net
1193 1189
1194 #endif // NET_SPDY_SPDY_SESSION_H_ 1190 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698