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

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

Issue 1893083002: Change scoped_ptr to std::unique_ptr in //net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-net-all: iwyu Created 4 years, 8 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 | « net/tools/quic/quic_client_bin.cc ('k') | net/tools/quic/quic_client_session_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 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 <string> 10 #include <string>
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Unlike CreateOutgoingDynamicStream, which applies a bunch of sanity checks, 74 // Unlike CreateOutgoingDynamicStream, which applies a bunch of sanity checks,
75 // this simply returns a new QuicSpdyClientStream. This may be used by 75 // this simply returns a new QuicSpdyClientStream. This may be used by
76 // subclasses which want to use a subclass of QuicSpdyClientStream for streams 76 // subclasses which want to use a subclass of QuicSpdyClientStream for streams
77 // but wish to use the sanity checks in CreateOutgoingDynamicStream. 77 // but wish to use the sanity checks in CreateOutgoingDynamicStream.
78 virtual QuicSpdyClientStream* CreateClientStream(); 78 virtual QuicSpdyClientStream* CreateClientStream();
79 79
80 const QuicServerId& server_id() { return server_id_; } 80 const QuicServerId& server_id() { return server_id_; }
81 QuicCryptoClientConfig* crypto_config() { return crypto_config_; } 81 QuicCryptoClientConfig* crypto_config() { return crypto_config_; }
82 82
83 private: 83 private:
84 scoped_ptr<QuicCryptoClientStreamBase> crypto_stream_; 84 std::unique_ptr<QuicCryptoClientStreamBase> crypto_stream_;
85 QuicServerId server_id_; 85 QuicServerId server_id_;
86 QuicCryptoClientConfig* crypto_config_; 86 QuicCryptoClientConfig* crypto_config_;
87 87
88 // If this is set to false, the client will ignore server GOAWAYs and allow 88 // If this is set to false, the client will ignore server GOAWAYs and allow
89 // the creation of streams regardless of the high chance they will fail. 89 // the creation of streams regardless of the high chance they will fail.
90 bool respect_goaway_; 90 bool respect_goaway_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); 92 DISALLOW_COPY_AND_ASSIGN(QuicClientSession);
93 }; 93 };
94 94
95 } // namespace net 95 } // namespace net
96 96
97 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_ 97 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client_bin.cc ('k') | net/tools/quic/quic_client_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698