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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
279 // "no-ping" : Disables SPDY ping connection testing. | 279 // "no-ping" : Disables SPDY ping connection testing. |
280 // "exclude=<host>" : Disables SPDY support for the host <host>. | 280 // "exclude=<host>" : Disables SPDY support for the host <host>. |
281 // "no-compress" : Disables SPDY header compression. | 281 // "no-compress" : Disables SPDY header compression. |
282 // "no-alt-protocols : Disables alternate protocol support. | 282 // "no-alt-protocols : Disables alternate protocol support. |
283 // "force-alt-protocols : Forces an alternate protocol of SPDY/3 | 283 // "force-alt-protocols : Forces an alternate protocol of SPDY/3 |
284 // on port 443. | 284 // on port 443. |
285 // "single-domain" : Forces all spdy traffic to a single domain. | 285 // "single-domain" : Forces all spdy traffic to a single domain. |
286 // "init-max-streams=<limit>" : Specifies the maximum number of concurrent | 286 // "init-max-streams=<limit>" : Specifies the maximum number of concurrent |
287 // streams for a SPDY session, unless the | 287 // streams for a SPDY session, unless the |
288 // specifies a different value via SETTINGS. | 288 // specifies a different value via SETTINGS. |
289 void EnableSpdy(const std::string& mode); | 289 static void EnableSpdy(const std::string& mode, IOThread::Globals* globals); |
Ryan Hamilton
2015/03/20 23:38:07
Hm. This method doesn't actually "enable spdy", ra
Bence
2015/03/23 14:19:13
Done.
| |
290 | 290 |
291 // Configures available SPDY protocol versions from the given trial. | 291 // Configures available SPDY protocol versions in |globals| based on the flags |
292 // Used only if no command-line configuration was present. | 292 // in |command_lin| as well as SPDY field trial group and parameters. |
293 static void ConfigureSpdyFromTrial(base::StringPiece spdy_trial_group, | 293 static void ConfigureSpdyGlobals(const base::CommandLine& command_line, |
294 Globals* globals); | 294 base::StringPiece quic_trial_group, |
295 const VariationParameters& quic_trial_params, | |
296 Globals* globals); | |
295 | 297 |
296 // Global state must be initialized on the IO thread, then this | 298 // Global state must be initialized on the IO thread, then this |
297 // method must be invoked on the UI thread. | 299 // method must be invoked on the UI thread. |
298 void InitSystemRequestContext(); | 300 void InitSystemRequestContext(); |
299 | 301 |
300 // Lazy initialization of system request context for | 302 // Lazy initialization of system request context for |
301 // SystemURLRequestContextGetter. To be called on IO thread only | 303 // SystemURLRequestContextGetter. To be called on IO thread only |
302 // after global state has been initialized on the IO thread, and | 304 // after global state has been initialized on the IO thread, and |
303 // SystemRequestContext state has been initialized on the UI thread. | 305 // SystemRequestContext state has been initialized on the UI thread. |
304 void InitSystemRequestContextOnIOThread(); | 306 void InitSystemRequestContextOnIOThread(); |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
474 bool is_spdy_disabled_by_policy_; | 476 bool is_spdy_disabled_by_policy_; |
475 | 477 |
476 const base::TimeTicks creation_time_; | 478 const base::TimeTicks creation_time_; |
477 | 479 |
478 base::WeakPtrFactory<IOThread> weak_factory_; | 480 base::WeakPtrFactory<IOThread> weak_factory_; |
479 | 481 |
480 DISALLOW_COPY_AND_ASSIGN(IOThread); | 482 DISALLOW_COPY_AND_ASSIGN(IOThread); |
481 }; | 483 }; |
482 | 484 |
483 #endif // CHROME_BROWSER_IO_THREAD_H_ | 485 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |