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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
214 | 214 |
215 // BrowserThreadDelegate implementation, runs on the IO thread. | 215 // BrowserThreadDelegate implementation, runs on the IO thread. |
216 // This handles initialization and destruction of state that must | 216 // This handles initialization and destruction of state that must |
217 // live on the IO thread. | 217 // live on the IO thread. |
218 virtual void Init() OVERRIDE; | 218 virtual void Init() OVERRIDE; |
219 virtual void InitAsync() OVERRIDE; | 219 virtual void InitAsync() OVERRIDE; |
220 virtual void CleanUp() OVERRIDE; | 220 virtual void CleanUp() OVERRIDE; |
221 | 221 |
222 void InitializeNetworkOptions(const CommandLine& parsed_command_line); | 222 void InitializeNetworkOptions(const CommandLine& parsed_command_line); |
223 | 223 |
224 // Enable the SPDY protocol. If this function is not called, SPDY/3 | 224 // Enable SPDY with the given mode, which may contain the following: |
darin (slow to review)
2013/10/05 06:27:58
side-note: io_thread.h seems like the wrong place
akalin
2013/10/05 19:40:17
Yeah, that's crbug.com/190061 . i'll get to it one
| |
225 // will be enabled. | 225 // |
226 // "off" : Disables SPDY support entirely. | 226 // "off" : Disables SPDY support entirely. |
227 // "ssl" : Forces SPDY for all HTTPS requests. | 227 // "ssl" : Forces SPDY for all HTTPS requests. |
228 // "no-ssl" : Forces SPDY for all HTTP requests. | 228 // "no-ssl" : Forces SPDY for all HTTP requests. |
229 // "no-ping" : Disables SPDY ping connection testing. | 229 // "no-ping" : Disables SPDY ping connection testing. |
230 // "exclude=<host>" : Disables SPDY support for the host <host>. | 230 // "exclude=<host>" : Disables SPDY support for the host <host>. |
231 // "no-compress" : Disables SPDY header compression. | 231 // "no-compress" : Disables SPDY header compression. |
232 // "no-alt-protocols : Disables alternate protocol support. | 232 // "no-alt-protocols : Disables alternate protocol support. |
233 // "force-alt-protocols : Forces an alternate protocol of SPDY/2 | 233 // "force-alt-protocols : Forces an alternate protocol of SPDY/3 |
234 // on port 443. | 234 // on port 443. |
235 // "single-domain" : Forces all spdy traffic to a single domain. | 235 // "single-domain" : Forces all spdy traffic to a single domain. |
236 // "init-max-streams=<limit>" : Specifies the maximum number of concurrent | 236 // "init-max-streams=<limit>" : Specifies the maximum number of concurrent |
237 // streams for a SPDY session, unless the | 237 // streams for a SPDY session, unless the |
238 // specifies a different value via SETTINGS. | 238 // specifies a different value via SETTINGS. |
239 void EnableSpdy(const std::string& mode); | 239 void EnableSpdy(const std::string& mode); |
240 | 240 |
241 // Global state must be initialized on the IO thread, then this | 241 // Global state must be initialized on the IO thread, then this |
242 // method must be invoked on the UI thread. | 242 // method must be invoked on the UI thread. |
243 void InitSystemRequestContext(); | 243 void InitSystemRequestContext(); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
318 | 318 |
319 // True if SPDY is disabled by policy. | 319 // True if SPDY is disabled by policy. |
320 bool is_spdy_disabled_by_policy_; | 320 bool is_spdy_disabled_by_policy_; |
321 | 321 |
322 base::WeakPtrFactory<IOThread> weak_factory_; | 322 base::WeakPtrFactory<IOThread> weak_factory_; |
323 | 323 |
324 DISALLOW_COPY_AND_ASSIGN(IOThread); | 324 DISALLOW_COPY_AND_ASSIGN(IOThread); |
325 }; | 325 }; |
326 | 326 |
327 #endif // CHROME_BROWSER_IO_THREAD_H_ | 327 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |