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

Side by Side Diff: net/quic/core/quic_client_session_base.h

Issue 2226643004: QuicSession no longer directly owns its QuicConnection. Not flag protected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@129226757
Patch Set: Created 4 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 | « no previous file | net/quic/core/quic_client_session_base.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_QUIC_QUIC_CLIENT_SESSION_BASE_H_ 5 #ifndef NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_
6 #define NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_ 6 #define NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 17 matching lines...) Expand all
28 28
29 // The maximum time a promises stream can be reserved without being 29 // The maximum time a promises stream can be reserved without being
30 // claimed by a client request. 30 // claimed by a client request.
31 const int64_t kPushPromiseTimeoutSecs = 60; 31 const int64_t kPushPromiseTimeoutSecs = 60;
32 32
33 // Base class for all client-specific QuicSession subclasses. 33 // Base class for all client-specific QuicSession subclasses.
34 class NET_EXPORT_PRIVATE QuicClientSessionBase 34 class NET_EXPORT_PRIVATE QuicClientSessionBase
35 : public QuicSpdySession, 35 : public QuicSpdySession,
36 public QuicCryptoClientStream::ProofHandler { 36 public QuicCryptoClientStream::ProofHandler {
37 public: 37 public:
38 // Caller retains ownership of |promised_by_url|. 38 // Takes ownership of |connection|. Caller retains ownership of
39 // |promised_by_url|.
39 QuicClientSessionBase(QuicConnection* connection, 40 QuicClientSessionBase(QuicConnection* connection,
40 QuicClientPushPromiseIndex* push_promise_index, 41 QuicClientPushPromiseIndex* push_promise_index,
41 const QuicConfig& config); 42 const QuicConfig& config);
42 43
43 ~QuicClientSessionBase() override; 44 ~QuicClientSessionBase() override;
44 45
45 void OnConfigNegotiated() override; 46 void OnConfigNegotiated() override;
46 47
47 // Override base class to set FEC policy before any data is sent by client. 48 // Override base class to set FEC policy before any data is sent by client.
48 void OnCryptoHandshakeEvent(CryptoHandshakeEvent event) override; 49 void OnCryptoHandshakeEvent(CryptoHandshakeEvent event) override;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 QuicClientPushPromiseIndex* push_promise_index_; 130 QuicClientPushPromiseIndex* push_promise_index_;
130 QuicPromisedByIdMap promised_by_id_; 131 QuicPromisedByIdMap promised_by_id_;
131 QuicStreamId largest_promised_stream_id_; 132 QuicStreamId largest_promised_stream_id_;
132 133
133 DISALLOW_COPY_AND_ASSIGN(QuicClientSessionBase); 134 DISALLOW_COPY_AND_ASSIGN(QuicClientSessionBase);
134 }; 135 };
135 136
136 } // namespace net 137 } // namespace net
137 138
138 #endif // NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_ 139 #endif // NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/core/quic_client_session_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698