| 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 #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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |