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

Side by Side Diff: net/quic/quic_stream_factory.h

Issue 667923003: Standardize usage of virtual/override/final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/quic/quic_spdy_server_stream.h ('k') | net/quic/quic_stream_factory.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 #ifndef NET_QUIC_QUIC_STREAM_FACTORY_H_ 5 #ifndef NET_QUIC_QUIC_STREAM_FACTORY_H_
6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_ 6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory, 98 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory,
99 QuicRandom* random_generator, 99 QuicRandom* random_generator,
100 QuicClock* clock, 100 QuicClock* clock,
101 size_t max_packet_length, 101 size_t max_packet_length,
102 const std::string& user_agent_id, 102 const std::string& user_agent_id,
103 const QuicVersionVector& supported_versions, 103 const QuicVersionVector& supported_versions,
104 bool enable_port_selection, 104 bool enable_port_selection,
105 bool always_require_handshake_confirmation, 105 bool always_require_handshake_confirmation,
106 bool disable_connection_pooling, 106 bool disable_connection_pooling,
107 const QuicTagVector& connection_options); 107 const QuicTagVector& connection_options);
108 virtual ~QuicStreamFactory(); 108 ~QuicStreamFactory() override;
109 109
110 // Creates a new QuicHttpStream to |host_port_pair| which will be 110 // Creates a new QuicHttpStream to |host_port_pair| which will be
111 // owned by |request|. |is_https| specifies if the protocol is https or not. 111 // owned by |request|. |is_https| specifies if the protocol is https or not.
112 // If a matching session already exists, this method will return OK. If no 112 // If a matching session already exists, this method will return OK. If no
113 // matching session exists, this will return ERR_IO_PENDING and will invoke 113 // matching session exists, this will return ERR_IO_PENDING and will invoke
114 // OnRequestComplete asynchronously. 114 // OnRequestComplete asynchronously.
115 int Create(const HostPortPair& host_port_pair, 115 int Create(const HostPortPair& host_port_pair,
116 bool is_https, 116 bool is_https,
117 PrivacyMode privacy_mode, 117 PrivacyMode privacy_mode,
118 base::StringPiece method, 118 base::StringPiece method,
(...skipping 21 matching lines...) Expand all
140 140
141 base::Value* QuicStreamFactoryInfoToValue() const; 141 base::Value* QuicStreamFactoryInfoToValue() const;
142 142
143 // Delete all cached state objects in |crypto_config_|. 143 // Delete all cached state objects in |crypto_config_|.
144 void ClearCachedStatesInCryptoConfig(); 144 void ClearCachedStatesInCryptoConfig();
145 145
146 // NetworkChangeNotifier::IPAddressObserver methods: 146 // NetworkChangeNotifier::IPAddressObserver methods:
147 147
148 // Until the servers support roaming, close all connections when the local 148 // Until the servers support roaming, close all connections when the local
149 // IP address changes. 149 // IP address changes.
150 virtual void OnIPAddressChanged() override; 150 void OnIPAddressChanged() override;
151 151
152 // CertDatabase::Observer methods: 152 // CertDatabase::Observer methods:
153 153
154 // We close all sessions when certificate database is changed. 154 // We close all sessions when certificate database is changed.
155 virtual void OnCertAdded(const X509Certificate* cert) override; 155 void OnCertAdded(const X509Certificate* cert) override;
156 virtual void OnCACertChanged(const X509Certificate* cert) override; 156 void OnCACertChanged(const X509Certificate* cert) override;
157 157
158 bool require_confirmation() const { 158 bool require_confirmation() const {
159 return require_confirmation_; 159 return require_confirmation_;
160 } 160 }
161 161
162 void set_require_confirmation(bool require_confirmation); 162 void set_require_confirmation(bool require_confirmation);
163 163
164 QuicConnectionHelper* helper() { return helper_.get(); } 164 QuicConnectionHelper* helper() { return helper_.get(); }
165 165
166 bool enable_port_selection() const { return enable_port_selection_; } 166 bool enable_port_selection() const { return enable_port_selection_; }
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 bool check_persisted_supports_quic_; 295 bool check_persisted_supports_quic_;
296 296
297 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 297 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
298 298
299 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 299 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
300 }; 300 };
301 301
302 } // namespace net 302 } // namespace net
303 303
304 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 304 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « net/quic/quic_spdy_server_stream.h ('k') | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698