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

Side by Side Diff: net/quic/test_tools/quic_client_session_peer.h

Issue 355293003: Restrict QUIC session pool when channel ID is present. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments Created 6 years, 5 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_TEST_TOOLS_QUIC_CLIENT_SESSION_PEER_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_CLIENT_SESSION_PEER_H_
6 #define NET_QUIC_TEST_TOOLS_QUIC_CLIENT_SESSION_PEER_H_ 6 #define NET_QUIC_TEST_TOOLS_QUIC_CLIENT_SESSION_PEER_H_
7 7
8 #include "net/quic/quic_protocol.h" 8 #include "net/quic/quic_protocol.h"
9 9
10 namespace net { 10 namespace net {
11 11
12 class ChannelIDKey;
12 class QuicClientSession; 13 class QuicClientSession;
13 14
14 namespace test { 15 namespace test {
15 16
16 class QuicClientSessionPeer { 17 class QuicClientSessionPeer {
17 public: 18 public:
18 static void SetMaxOpenStreams(QuicClientSession* session, 19 static void SetMaxOpenStreams(QuicClientSession* session,
19 size_t max_streams, 20 size_t max_streams,
20 size_t default_streams); 21 size_t default_streams);
21 22
23 static void SetChannelIDKey(QuicClientSession* session,
24 ChannelIDKey* channel_id_key);
25
22 private: 26 private:
23 DISALLOW_COPY_AND_ASSIGN(QuicClientSessionPeer); 27 DISALLOW_COPY_AND_ASSIGN(QuicClientSessionPeer);
24 }; 28 };
25 29
26 } // namespace test 30 } // namespace test
27 } // namespace net 31 } // namespace net
28 32
29 #endif // NET_QUIC_TEST_TOOLS_QUIC_CLIENT_SESSION_PEER_H_ 33 #endif // NET_QUIC_TEST_TOOLS_QUIC_CLIENT_SESSION_PEER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698