OLD | NEW |
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 CHROME_BROWSER_IO_THREAD_H_ | 5 #ifndef CHROME_BROWSER_IO_THREAD_H_ |
6 #define CHROME_BROWSER_IO_THREAD_H_ | 6 #define CHROME_BROWSER_IO_THREAD_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 Optional<bool> force_spdy_single_domain; | 166 Optional<bool> force_spdy_single_domain; |
167 Optional<bool> enable_spdy_compression; | 167 Optional<bool> enable_spdy_compression; |
168 Optional<bool> enable_spdy_ping_based_connection_checking; | 168 Optional<bool> enable_spdy_ping_based_connection_checking; |
169 Optional<net::NextProto> spdy_default_protocol; | 169 Optional<net::NextProto> spdy_default_protocol; |
170 net::NextProtoVector next_protos; | 170 net::NextProtoVector next_protos; |
171 Optional<string> trusted_spdy_proxy; | 171 Optional<string> trusted_spdy_proxy; |
172 Optional<bool> force_spdy_over_ssl; | 172 Optional<bool> force_spdy_over_ssl; |
173 Optional<bool> force_spdy_always; | 173 Optional<bool> force_spdy_always; |
174 std::set<net::HostPortPair> forced_spdy_exclusions; | 174 std::set<net::HostPortPair> forced_spdy_exclusions; |
175 Optional<bool> use_alternate_protocols; | 175 Optional<bool> use_alternate_protocols; |
176 Optional<double> alternate_protocol_probability_threshold; | |
177 Optional<bool> enable_websocket_over_spdy; | 176 Optional<bool> enable_websocket_over_spdy; |
178 | 177 |
179 Optional<bool> enable_quic; | 178 Optional<bool> enable_quic; |
180 Optional<bool> enable_quic_pacing; | 179 Optional<bool> enable_quic_pacing; |
181 Optional<bool> enable_quic_time_based_loss_detection; | 180 Optional<bool> enable_quic_time_based_loss_detection; |
182 Optional<bool> enable_quic_port_selection; | 181 Optional<bool> enable_quic_port_selection; |
183 Optional<size_t> quic_max_packet_length; | 182 Optional<size_t> quic_max_packet_length; |
184 net::QuicTagVector quic_connection_options; | 183 net::QuicTagVector quic_connection_options; |
185 Optional<std::string> quic_user_agent_id; | 184 Optional<std::string> quic_user_agent_id; |
186 Optional<net::QuicVersionVector> quic_supported_versions; | 185 Optional<net::QuicVersionVector> quic_supported_versions; |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 // |command_line| or |quic_trial_params|. | 354 // |command_line| or |quic_trial_params|. |
356 static net::QuicTagVector GetQuicConnectionOptions( | 355 static net::QuicTagVector GetQuicConnectionOptions( |
357 const base::CommandLine& command_line, | 356 const base::CommandLine& command_line, |
358 const VariationParameters& quic_trial_params); | 357 const VariationParameters& quic_trial_params); |
359 | 358 |
360 // Returns the list of QUIC tags represented by the comma separated | 359 // Returns the list of QUIC tags represented by the comma separated |
361 // string in |connection_options|. | 360 // string in |connection_options|. |
362 static net::QuicTagVector ParseQuicConnectionOptions( | 361 static net::QuicTagVector ParseQuicConnectionOptions( |
363 const std::string& connection_options); | 362 const std::string& connection_options); |
364 | 363 |
365 // Returns the alternate protocol probability threshold specified by | |
366 // any flags in |command_line| or |quic_trial_params|. | |
367 static double GetAlternateProtocolProbabilityThreshold( | |
368 const base::CommandLine& command_line, | |
369 const VariationParameters& quic_trial_params); | |
370 | |
371 // The NetLog is owned by the browser process, to allow logging from other | 364 // The NetLog is owned by the browser process, to allow logging from other |
372 // threads during shutdown, but is used most frequently on the IOThread. | 365 // threads during shutdown, but is used most frequently on the IOThread. |
373 ChromeNetLog* net_log_; | 366 ChromeNetLog* net_log_; |
374 | 367 |
375 // The extensions::EventRouterForwarder allows for sending events to | 368 // The extensions::EventRouterForwarder allows for sending events to |
376 // extensions from the IOThread. | 369 // extensions from the IOThread. |
377 extensions::EventRouterForwarder* extension_event_router_forwarder_; | 370 extensions::EventRouterForwarder* extension_event_router_forwarder_; |
378 | 371 |
379 // These member variables are basically global, but their lifetimes are tied | 372 // These member variables are basically global, but their lifetimes are tied |
380 // to the IOThread. IOThread owns them all, despite not using scoped_ptr. | 373 // to the IOThread. IOThread owns them all, despite not using scoped_ptr. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 bool is_spdy_disabled_by_policy_; | 414 bool is_spdy_disabled_by_policy_; |
422 | 415 |
423 base::WeakPtrFactory<IOThread> weak_factory_; | 416 base::WeakPtrFactory<IOThread> weak_factory_; |
424 | 417 |
425 const base::TimeTicks creation_time_; | 418 const base::TimeTicks creation_time_; |
426 | 419 |
427 DISALLOW_COPY_AND_ASSIGN(IOThread); | 420 DISALLOW_COPY_AND_ASSIGN(IOThread); |
428 }; | 421 }; |
429 | 422 |
430 #endif // CHROME_BROWSER_IO_THREAD_H_ | 423 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |