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

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

Issue 11416205: Move EnableSpdy from HttpNetworkLayer to IOThread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years 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_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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 friend class SystemURLRequestContextGetter; 163 friend class SystemURLRequestContextGetter;
164 164
165 // BrowserThreadDelegate implementation, runs on the IO thread. 165 // BrowserThreadDelegate implementation, runs on the IO thread.
166 // This handles initialization and destruction of state that must 166 // This handles initialization and destruction of state that must
167 // live on the IO thread. 167 // live on the IO thread.
168 virtual void Init() OVERRIDE; 168 virtual void Init() OVERRIDE;
169 virtual void CleanUp() OVERRIDE; 169 virtual void CleanUp() OVERRIDE;
170 170
171 void InitializeNetworkOptions(const CommandLine& parsed_command_line); 171 void InitializeNetworkOptions(const CommandLine& parsed_command_line);
172 172
173 // Enable the SPDY protocol. If this function is not called, SPDY/3
174 // will be enabled.
175 // "off" : Disables SPDY support entirely.
176 // "ssl" : Forces SPDY for all HTTPS requests.
177 // "no-ssl" : Forces SPDY for all HTTP requests.
178 // "no-ping" : Disables SPDY ping connection testing.
179 // "exclude=<host>" : Disables SPDY support for the host <host>.
180 // "no-compress" : Disables SPDY header compression.
181 // "no-alt-protocols : Disables alternate protocol support.
182 // "force-alt-protocols : Forces an alternate protocol of SPDY/2
183 // on port 443.
184 // "single-domain" : Forces all spdy traffic to a single domain.
185 // "init-max-streams=<limit>" : Specifies the maximum number of concurrent
186 // streams for a SPDY session, unless the
187 // specifies a different value via SETTINGS.
188 void EnableSpdy(const std::string& mode);
189
173 // Global state must be initialized on the IO thread, then this 190 // Global state must be initialized on the IO thread, then this
174 // method must be invoked on the UI thread. 191 // method must be invoked on the UI thread.
175 void InitSystemRequestContext(); 192 void InitSystemRequestContext();
176 193
177 // Lazy initialization of system request context for 194 // Lazy initialization of system request context for
178 // SystemURLRequestContextGetter. To be called on IO thread only 195 // SystemURLRequestContextGetter. To be called on IO thread only
179 // after global state has been initialized on the IO thread, and 196 // after global state has been initialized on the IO thread, and
180 // SystemRequestContext state has been initialized on the UI thread. 197 // SystemRequestContext state has been initialized on the UI thread.
181 void InitSystemRequestContextOnIOThread(); 198 void InitSystemRequestContextOnIOThread();
182 199
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 261
245 // True if SPDY is disabled by policy. 262 // True if SPDY is disabled by policy.
246 bool is_spdy_disabled_by_policy_; 263 bool is_spdy_disabled_by_policy_;
247 264
248 base::WeakPtrFactory<IOThread> weak_factory_; 265 base::WeakPtrFactory<IOThread> weak_factory_;
249 266
250 DISALLOW_COPY_AND_ASSIGN(IOThread); 267 DISALLOW_COPY_AND_ASSIGN(IOThread);
251 }; 268 };
252 269
253 #endif // CHROME_BROWSER_IO_THREAD_H_ 270 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_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