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

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

Issue 2464603002: Break reliance of QuicDispatcher on QuicServerSessionBase (Closed)
Patch Set: Updated patchset dependency Created 4 years, 1 month 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/tools/quic/end_to_end_test.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 server specific QuicSession subclass. 5 // A server specific QuicSession subclass.
6 6
7 #ifndef NET_QUIC_QUIC_SERVER_SESSION_BASE_H_ 7 #ifndef NET_QUIC_QUIC_SERVER_SESSION_BASE_H_
8 #define NET_QUIC_QUIC_SERVER_SESSION_BASE_H_ 8 #define NET_QUIC_QUIC_SERVER_SESSION_BASE_H_
9 9
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 const std::string& error_details) = 0; 50 const std::string& error_details) = 0;
51 51
52 // Called when the session has become write blocked. 52 // Called when the session has become write blocked.
53 virtual void OnWriteBlocked(QuicBlockedWriterInterface* blocked_writer) = 0; 53 virtual void OnWriteBlocked(QuicBlockedWriterInterface* blocked_writer) = 0;
54 54
55 // Called after the given connection is added to the time-wait std::list. 55 // Called after the given connection is added to the time-wait std::list.
56 virtual void OnConnectionAddedToTimeWaitList( 56 virtual void OnConnectionAddedToTimeWaitList(
57 QuicConnectionId connection_id) = 0; 57 QuicConnectionId connection_id) = 0;
58 58
59 // Called before a packet is going to be processed by |session|. 59 // Called before a packet is going to be processed by |session|.
60 virtual void OnPacketBeingDispatchedToSession( 60 virtual void OnPacketBeingDispatchedToSession(QuicSession* session) = 0;
61 QuicServerSessionBase* session) = 0;
62 }; 61 };
63 62
64 // Does not take ownership of |connection|. |crypto_config| must outlive the 63 // Does not take ownership of |connection|. |crypto_config| must outlive the
65 // session. |helper| must outlive any created crypto streams. 64 // session. |helper| must outlive any created crypto streams.
66 QuicServerSessionBase(const QuicConfig& config, 65 QuicServerSessionBase(const QuicConfig& config,
67 QuicConnection* connection, 66 QuicConnection* connection,
68 Visitor* visitor, 67 Visitor* visitor,
69 QuicCryptoServerStream::Helper* helper, 68 QuicCryptoServerStream::Helper* helper,
70 const QuicCryptoServerConfig* crypto_config, 69 const QuicCryptoServerConfig* crypto_config,
71 QuicCompressedCertsCache* compressed_certs_cache); 70 QuicCompressedCertsCache* compressed_certs_cache);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // should go away once we fix http://b//27897982 158 // should go away once we fix http://b//27897982
160 int32_t BandwidthToCachedParameterBytesPerSecond( 159 int32_t BandwidthToCachedParameterBytesPerSecond(
161 const QuicBandwidth& bandwidth); 160 const QuicBandwidth& bandwidth);
162 161
163 DISALLOW_COPY_AND_ASSIGN(QuicServerSessionBase); 162 DISALLOW_COPY_AND_ASSIGN(QuicServerSessionBase);
164 }; 163 };
165 164
166 } // namespace net 165 } // namespace net
167 166
168 #endif // NET_QUIC_QUIC_SERVER_SESSION_BASE_H_ 167 #endif // NET_QUIC_QUIC_SERVER_SESSION_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698