Chromium Code Reviews| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 202 void InitializeNetworkSessionParams(net::HttpNetworkSession::Params* params); | 202 void InitializeNetworkSessionParams(net::HttpNetworkSession::Params* params); |
| 203 | 203 |
| 204 private: | 204 private: |
| 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 {} |
|
awong
2013/07/16 21:21:39
nit: don't inline virtual functions.
| |
| 213 virtual void InitAsync() OVERRIDE; | |
| 213 virtual void CleanUp() OVERRIDE; | 214 virtual void CleanUp() OVERRIDE; |
| 214 | 215 |
| 215 void InitializeNetworkOptions(const CommandLine& parsed_command_line); | 216 void InitializeNetworkOptions(const CommandLine& parsed_command_line); |
| 216 | 217 |
| 217 // Enable the SPDY protocol. If this function is not called, SPDY/3 | 218 // Enable the SPDY protocol. If this function is not called, SPDY/3 |
| 218 // will be enabled. | 219 // will be enabled. |
| 219 // "off" : Disables SPDY support entirely. | 220 // "off" : Disables SPDY support entirely. |
| 220 // "ssl" : Forces SPDY for all HTTPS requests. | 221 // "ssl" : Forces SPDY for all HTTPS requests. |
| 221 // "no-ssl" : Forces SPDY for all HTTP requests. | 222 // "no-ssl" : Forces SPDY for all HTTP requests. |
| 222 // "no-ping" : Disables SPDY ping connection testing. | 223 // "no-ping" : Disables SPDY ping connection testing. |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 307 | 308 |
| 308 // True if SPDY is disabled by policy. | 309 // True if SPDY is disabled by policy. |
| 309 bool is_spdy_disabled_by_policy_; | 310 bool is_spdy_disabled_by_policy_; |
| 310 | 311 |
| 311 base::WeakPtrFactory<IOThread> weak_factory_; | 312 base::WeakPtrFactory<IOThread> weak_factory_; |
| 312 | 313 |
| 313 DISALLOW_COPY_AND_ASSIGN(IOThread); | 314 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 314 }; | 315 }; |
| 315 | 316 |
| 316 #endif // CHROME_BROWSER_IO_THREAD_H_ | 317 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |