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

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

Issue 689923002: Add Spdy4Experiment group. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use prefix instead. Created 6 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | chrome/browser/io_thread.cc » ('J')
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 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/prefs/pref_member.h" 16 #include "base/prefs/pref_member.h"
17 #include "base/strings/string_piece.h"
17 #include "base/time/time.h" 18 #include "base/time/time.h"
18 #include "chrome/browser/net/chrome_network_delegate.h" 19 #include "chrome/browser/net/chrome_network_delegate.h"
19 #include "chrome/browser/net/ssl_config_service_manager.h" 20 #include "chrome/browser/net/ssl_config_service_manager.h"
20 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
21 #include "content/public/browser/browser_thread_delegate.h" 22 #include "content/public/browser/browser_thread_delegate.h"
22 #include "net/base/network_change_notifier.h" 23 #include "net/base/network_change_notifier.h"
23 #include "net/http/http_network_session.h" 24 #include "net/http/http_network_session.h"
24 #include "net/socket/next_proto.h" 25 #include "net/socket/next_proto.h"
25 26
26 class ChromeNetLog; 27 class ChromeNetLog;
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // "force-alt-protocols : Forces an alternate protocol of SPDY/3 283 // "force-alt-protocols : Forces an alternate protocol of SPDY/3
283 // on port 443. 284 // on port 443.
284 // "single-domain" : Forces all spdy traffic to a single domain. 285 // "single-domain" : Forces all spdy traffic to a single domain.
285 // "init-max-streams=<limit>" : Specifies the maximum number of concurrent 286 // "init-max-streams=<limit>" : Specifies the maximum number of concurrent
286 // streams for a SPDY session, unless the 287 // streams for a SPDY session, unless the
287 // specifies a different value via SETTINGS. 288 // specifies a different value via SETTINGS.
288 void EnableSpdy(const std::string& mode); 289 void EnableSpdy(const std::string& mode);
289 290
290 // Configures available SPDY protocol versions from the given trial. 291 // Configures available SPDY protocol versions from the given trial.
291 // Used only if no command-line configuration was present. 292 // Used only if no command-line configuration was present.
292 static void ConfigureSpdyFromTrial(const std::string& spdy_trial_group, 293 static void ConfigureSpdyFromTrial(base::StringPiece spdy_trial_group,
293 Globals* globals); 294 Globals* globals);
294 295
295 // Global state must be initialized on the IO thread, then this 296 // Global state must be initialized on the IO thread, then this
296 // method must be invoked on the UI thread. 297 // method must be invoked on the UI thread.
297 void InitSystemRequestContext(); 298 void InitSystemRequestContext();
298 299
299 // Lazy initialization of system request context for 300 // Lazy initialization of system request context for
300 // SystemURLRequestContextGetter. To be called on IO thread only 301 // SystemURLRequestContextGetter. To be called on IO thread only
301 // after global state has been initialized on the IO thread, and 302 // after global state has been initialized on the IO thread, and
302 // SystemRequestContext state has been initialized on the UI thread. 303 // SystemRequestContext state has been initialized on the UI thread.
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 bool is_spdy_disabled_by_policy_; 460 bool is_spdy_disabled_by_policy_;
460 461
461 const base::TimeTicks creation_time_; 462 const base::TimeTicks creation_time_;
462 463
463 base::WeakPtrFactory<IOThread> weak_factory_; 464 base::WeakPtrFactory<IOThread> weak_factory_;
464 465
465 DISALLOW_COPY_AND_ASSIGN(IOThread); 466 DISALLOW_COPY_AND_ASSIGN(IOThread);
466 }; 467 };
467 468
468 #endif // CHROME_BROWSER_IO_THREAD_H_ 469 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | chrome/browser/io_thread.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698