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

Side by Side Diff: net/quic/quic_client_session.h

Issue 293763002: Improve the content displayed at chrome://net-internals/#quic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « chrome/browser/resources/net_internals/quic_view.html ('k') | net/quic/quic_client_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 // A client specific QuicSession subclass. This class owns the underlying 5 // A client specific QuicSession subclass. This class owns the underlying
6 // QuicConnection and QuicConnectionHelper objects. The connection stores 6 // QuicConnection and QuicConnectionHelper objects. The connection stores
7 // a non-owning pointer to the helper so this session needs to ensure that 7 // a non-owning pointer to the helper so this session needs to ensure that
8 // the helper outlives the connection. 8 // the helper outlives the connection.
9 9
10 #ifndef NET_QUIC_QUIC_CLIENT_SESSION_H_ 10 #ifndef NET_QUIC_QUIC_CLIENT_SESSION_H_
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 const CompletionCallback& callback); 150 const CompletionCallback& callback);
151 151
152 // Causes the QuicConnectionHelper to start reading from the socket 152 // Causes the QuicConnectionHelper to start reading from the socket
153 // and passing the data along to the QuicConnection. 153 // and passing the data along to the QuicConnection.
154 void StartReading(); 154 void StartReading();
155 155
156 // Close the session because of |error| and notifies the factory 156 // Close the session because of |error| and notifies the factory
157 // that this session has been closed, which will delete the session. 157 // that this session has been closed, which will delete the session.
158 void CloseSessionOnError(int error); 158 void CloseSessionOnError(int error);
159 159
160 base::Value* GetInfoAsValue(const std::set<HostPortPair>& aliases) const; 160 base::Value* GetInfoAsValue(const std::set<HostPortPair>& aliases);
161 161
162 const BoundNetLog& net_log() const { return net_log_; } 162 const BoundNetLog& net_log() const { return net_log_; }
163 163
164 base::WeakPtr<QuicClientSession> GetWeakPtr(); 164 base::WeakPtr<QuicClientSession> GetWeakPtr();
165 165
166 // Returns the number of client hello messages that have been sent on the 166 // Returns the number of client hello messages that have been sent on the
167 // crypto stream. If the handshake has completed then this is one greater 167 // crypto stream. If the handshake has completed then this is one greater
168 // than the number of round-trips needed for the handshake. 168 // than the number of round-trips needed for the handshake.
169 int GetNumSentClientHellos() const; 169 int GetNumSentClientHellos() const;
170 170
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // on this session. Existing stream will continue to be processed. 234 // on this session. Existing stream will continue to be processed.
235 bool going_away_; 235 bool going_away_;
236 base::WeakPtrFactory<QuicClientSession> weak_factory_; 236 base::WeakPtrFactory<QuicClientSession> weak_factory_;
237 237
238 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); 238 DISALLOW_COPY_AND_ASSIGN(QuicClientSession);
239 }; 239 };
240 240
241 } // namespace net 241 } // namespace net
242 242
243 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_ 243 #endif // NET_QUIC_QUIC_CLIENT_SESSION_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/quic_view.html ('k') | net/quic/quic_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698