Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "chrome/browser/browser_process_sub_thread.h" | 12 #include "chrome/browser/browser_process_sub_thread.h" |
| 13 #include "chrome/browser/net/chrome_network_delegate.h" | 13 #include "chrome/browser/net/chrome_network_delegate.h" |
| 14 #include "chrome/common/net/predictor_common.h" | 14 #include "chrome/common/net/predictor_common.h" |
| 15 #include "chrome/browser/net/connect_interceptor.h" | 15 #include "chrome/browser/net/connect_interceptor.h" |
| 16 #include "net/base/host_resolver.h" | 16 #include "net/base/host_resolver.h" |
| 17 #include "net/base/network_change_notifier.h" | 17 #include "net/base/network_change_notifier.h" |
| 18 | 18 |
| 19 class ChromeNetLog; | 19 class ChromeNetLog; |
| 20 class ListValue; | 20 class ListValue; |
| 21 | 21 |
| 22 namespace chrome_browser_net { | 22 namespace chrome_browser_net { |
| 23 class Predictor; | 23 class Predictor; |
| 24 } // namespace chrome_browser_net | 24 } // namespace chrome_browser_net |
| 25 | 25 |
| 26 namespace net { | 26 namespace net { |
| 27 class HttpAuthHandlerFactory; | 27 class HttpAuthHandlerFactory; |
| 28 class URLSecurityManager; | 28 class URLSecurityManager; |
| 29 class DnsRRResolver; | |
|
willchan no longer on Chromium
2010/10/05 04:33:08
Nit: I think we generally sort these alphabeticall
| |
| 29 } // namespace net | 30 } // namespace net |
| 30 | 31 |
| 31 class IOThread : public BrowserProcessSubThread { | 32 class IOThread : public BrowserProcessSubThread { |
| 32 public: | 33 public: |
| 33 struct Globals { | 34 struct Globals { |
| 34 scoped_ptr<ChromeNetLog> net_log; | 35 scoped_ptr<ChromeNetLog> net_log; |
| 35 scoped_ptr<net::HostResolver> host_resolver; | 36 scoped_ptr<net::HostResolver> host_resolver; |
| 37 scoped_ptr<net::DnsRRResolver> dnsrr_resolver; | |
| 36 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory; | 38 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory; |
| 37 scoped_ptr<net::URLSecurityManager> url_security_manager; | 39 scoped_ptr<net::URLSecurityManager> url_security_manager; |
| 38 ChromeNetworkDelegate network_delegate; | 40 ChromeNetworkDelegate network_delegate; |
| 39 }; | 41 }; |
| 40 | 42 |
| 41 IOThread(); | 43 IOThread(); |
| 42 | 44 |
| 43 virtual ~IOThread(); | 45 virtual ~IOThread(); |
| 44 | 46 |
| 45 // Can only be called on the IO thread. | 47 // Can only be called on the IO thread. |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 107 // explicit about destruction order, and ensure that there is no chance that | 109 // explicit about destruction order, and ensure that there is no chance that |
| 108 // these observers would be used accidentally after we have begun to tear | 110 // these observers would be used accidentally after we have begun to tear |
| 109 // down. | 111 // down. |
| 110 chrome_browser_net::ConnectInterceptor* speculative_interceptor_; | 112 chrome_browser_net::ConnectInterceptor* speculative_interceptor_; |
| 111 chrome_browser_net::Predictor* predictor_; | 113 chrome_browser_net::Predictor* predictor_; |
| 112 | 114 |
| 113 DISALLOW_COPY_AND_ASSIGN(IOThread); | 115 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 114 }; | 116 }; |
| 115 | 117 |
| 116 #endif // CHROME_BROWSER_IO_THREAD_H_ | 118 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |