Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(591)

Side by Side Diff: chrome/browser/io_thread.h

Issue 25977005: [SPDY] Do not advertise SPDY/2 by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chrome_net_benchmarking_message_filter.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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:
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_net_benchmarking_message_filter.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698