| 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 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 // Provide SystemURLRequestContextGetter with access to | 205 // Provide SystemURLRequestContextGetter with access to |
| 206 // InitSystemRequestContext(). | 206 // InitSystemRequestContext(). |
| 207 friend class SystemURLRequestContextGetter; | 207 friend class SystemURLRequestContextGetter; |
| 208 | 208 |
| 209 // BrowserThreadDelegate implementation, runs on the IO thread. | 209 // BrowserThreadDelegate implementation, runs on the IO thread. |
| 210 // This handles initialization and destruction of state that must | 210 // This handles initialization and destruction of state that must |
| 211 // live on the IO thread. | 211 // live on the IO thread. |
| 212 virtual void Init() OVERRIDE; | 212 virtual void Init() OVERRIDE; |
| 213 virtual void CleanUp() OVERRIDE; | 213 virtual void CleanUp() OVERRIDE; |
| 214 | 214 |
| 215 void DoInitTasks(); |
| 216 |
| 215 void InitializeNetworkOptions(const CommandLine& parsed_command_line); | 217 void InitializeNetworkOptions(const CommandLine& parsed_command_line); |
| 216 | 218 |
| 217 // Enable the SPDY protocol. If this function is not called, SPDY/3 | 219 // Enable the SPDY protocol. If this function is not called, SPDY/3 |
| 218 // will be enabled. | 220 // will be enabled. |
| 219 // "off" : Disables SPDY support entirely. | 221 // "off" : Disables SPDY support entirely. |
| 220 // "ssl" : Forces SPDY for all HTTPS requests. | 222 // "ssl" : Forces SPDY for all HTTPS requests. |
| 221 // "no-ssl" : Forces SPDY for all HTTP requests. | 223 // "no-ssl" : Forces SPDY for all HTTP requests. |
| 222 // "no-ping" : Disables SPDY ping connection testing. | 224 // "no-ping" : Disables SPDY ping connection testing. |
| 223 // "exclude=<host>" : Disables SPDY support for the host <host>. | 225 // "exclude=<host>" : Disables SPDY support for the host <host>. |
| 224 // "no-compress" : Disables SPDY header compression. | 226 // "no-compress" : Disables SPDY header compression. |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 | 309 |
| 308 // True if SPDY is disabled by policy. | 310 // True if SPDY is disabled by policy. |
| 309 bool is_spdy_disabled_by_policy_; | 311 bool is_spdy_disabled_by_policy_; |
| 310 | 312 |
| 311 base::WeakPtrFactory<IOThread> weak_factory_; | 313 base::WeakPtrFactory<IOThread> weak_factory_; |
| 312 | 314 |
| 313 DISALLOW_COPY_AND_ASSIGN(IOThread); | 315 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 314 }; | 316 }; |
| 315 | 317 |
| 316 #endif // CHROME_BROWSER_IO_THREAD_H_ | 318 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |