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

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

Issue 2417183003: Remove stl_util's deletion functions from remaining quic code. (Closed)
Patch Set: rebase 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 | « net/quic/test_tools/quic_test_utils.cc ('k') | net/tools/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. 5 // A client specific QuicSession subclass.
6 6
7 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_ 7 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_
8 #define NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_ 8 #define NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 protected: 64 protected:
65 // QuicSession methods: 65 // QuicSession methods:
66 QuicSpdyStream* CreateIncomingDynamicStream(QuicStreamId id) override; 66 QuicSpdyStream* CreateIncomingDynamicStream(QuicStreamId id) override;
67 // If an outgoing stream can be created, return true. 67 // If an outgoing stream can be created, return true.
68 bool ShouldCreateOutgoingDynamicStream() override; 68 bool ShouldCreateOutgoingDynamicStream() override;
69 69
70 // If an incoming stream can be created, return true. 70 // If an incoming stream can be created, return true.
71 bool ShouldCreateIncomingDynamicStream(QuicStreamId id) override; 71 bool ShouldCreateIncomingDynamicStream(QuicStreamId id) override;
72 72
73 // Create the crypto stream. Called by Initialize() 73 // Create the crypto stream. Called by Initialize().
74 virtual QuicCryptoClientStreamBase* CreateQuicCryptoStream(); 74 virtual std::unique_ptr<QuicCryptoClientStreamBase> CreateQuicCryptoStream();
75 75
76 // Unlike CreateOutgoingDynamicStream, which applies a bunch of sanity checks, 76 // Unlike CreateOutgoingDynamicStream, which applies a bunch of sanity checks,
77 // this simply returns a new QuicSpdyClientStream. This may be used by 77 // this simply returns a new QuicSpdyClientStream. This may be used by
78 // subclasses which want to use a subclass of QuicSpdyClientStream for streams 78 // subclasses which want to use a subclass of QuicSpdyClientStream for streams
79 // but wish to use the sanity checks in CreateOutgoingDynamicStream. 79 // but wish to use the sanity checks in CreateOutgoingDynamicStream.
80 virtual std::unique_ptr<QuicSpdyClientStream> CreateClientStream(); 80 virtual std::unique_ptr<QuicSpdyClientStream> CreateClientStream();
81 81
82 const QuicServerId& server_id() { return server_id_; } 82 const QuicServerId& server_id() { return server_id_; }
83 QuicCryptoClientConfig* crypto_config() { return crypto_config_; } 83 QuicCryptoClientConfig* crypto_config() { return crypto_config_; }
84 84
85 private: 85 private:
86 std::unique_ptr<QuicCryptoClientStreamBase> crypto_stream_; 86 std::unique_ptr<QuicCryptoClientStreamBase> crypto_stream_;
87 QuicServerId server_id_; 87 QuicServerId server_id_;
88 QuicCryptoClientConfig* crypto_config_; 88 QuicCryptoClientConfig* crypto_config_;
89 89
90 // If this is set to false, the client will ignore server GOAWAYs and allow 90 // If this is set to false, the client will ignore server GOAWAYs and allow
91 // the creation of streams regardless of the high chance they will fail. 91 // the creation of streams regardless of the high chance they will fail.
92 bool respect_goaway_; 92 bool respect_goaway_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); 94 DISALLOW_COPY_AND_ASSIGN(QuicClientSession);
95 }; 95 };
96 96
97 } // namespace net 97 } // namespace net
98 98
99 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_ 99 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_utils.cc ('k') | net/tools/quic/quic_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698