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