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

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: 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
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.
174 // Without calling this function, SPDY is disabled. The mode can be:
Ryan Sleevi 2012/11/27 20:06:38 This is... an odd default. Why is SPDY disabled b
Ryan Hamilton 2012/11/27 20:52:53 That comment appears to be incorrect. I've revamp
175 // "" : (default) SSL and compression are enabled, flow
176 // control disabled.
177 // "no-ssl" : disables SSL.
178 // "no-compress" : disables compression.
179 // "flow-control": enables flow control.
180 // "none" : disables both SSL and compression.
181 void EnableSpdy(const std::string& mode);
182
173 // Global state must be initialized on the IO thread, then this 183 // Global state must be initialized on the IO thread, then this
174 // method must be invoked on the UI thread. 184 // method must be invoked on the UI thread.
175 void InitSystemRequestContext(); 185 void InitSystemRequestContext();
176 186
177 // Lazy initialization of system request context for 187 // Lazy initialization of system request context for
178 // SystemURLRequestContextGetter. To be called on IO thread only 188 // SystemURLRequestContextGetter. To be called on IO thread only
179 // after global state has been initialized on the IO thread, and 189 // after global state has been initialized on the IO thread, and
180 // SystemRequestContext state has been initialized on the UI thread. 190 // SystemRequestContext state has been initialized on the UI thread.
181 void InitSystemRequestContextOnIOThread(); 191 void InitSystemRequestContextOnIOThread();
182 192
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 250
241 // True if SPDY is disabled by policy. 251 // True if SPDY is disabled by policy.
242 bool is_spdy_disabled_by_policy_; 252 bool is_spdy_disabled_by_policy_;
243 253
244 base::WeakPtrFactory<IOThread> weak_factory_; 254 base::WeakPtrFactory<IOThread> weak_factory_;
245 255
246 DISALLOW_COPY_AND_ASSIGN(IOThread); 256 DISALLOW_COPY_AND_ASSIGN(IOThread);
247 }; 257 };
248 258
249 #endif // CHROME_BROWSER_IO_THREAD_H_ 259 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698