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 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/ref_counted.h" | 11 #include "base/ref_counted.h" |
12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
13 #include "base/task.h" | 13 #include "base/task.h" |
14 #include "chrome/browser/browser_process_sub_thread.h" | 14 #include "chrome/browser/browser_process_sub_thread.h" |
15 #include "chrome/browser/net/chrome_network_delegate.h" | 15 #include "chrome/browser/net/chrome_network_delegate.h" |
16 #include "chrome/common/net/dns.h" | 16 #include "chrome/common/net/dns.h" |
17 #include "chrome/browser/net/connect_interceptor.h" | 17 #include "chrome/browser/net/connect_interceptor.h" |
18 #include "net/base/host_resolver.h" | 18 #include "net/base/host_resolver.h" |
19 | 19 |
20 class ChromeNetLog; | 20 class ChromeNetLog; |
21 class ListValue; | 21 class ListValue; |
22 | 22 |
23 namespace chrome_browser_net { | 23 namespace chrome_browser_net { |
24 class DnsMaster; | 24 class DnsMaster; |
25 } // namespace chrome_browser_net | 25 } // namespace chrome_browser_net |
26 | 26 |
27 namespace net { | 27 namespace net { |
28 class HttpAuthHandlerFactory; | 28 class HttpAuthHandlerFactory; |
29 class NetworkChangeNotifier; | |
30 class URLSecurityManager; | 29 class URLSecurityManager; |
31 } // namespace net | 30 } // namespace net |
32 | 31 |
33 class IOThread : public BrowserProcessSubThread { | 32 class IOThread : public BrowserProcessSubThread { |
34 public: | 33 public: |
35 struct Globals { | 34 struct Globals { |
36 scoped_ptr<ChromeNetLog> net_log; | 35 scoped_ptr<ChromeNetLog> net_log; |
37 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier; | |
38 // TODO(willchan): Stop reference counting HostResolver. It's owned by | 36 // TODO(willchan): Stop reference counting HostResolver. It's owned by |
39 // IOThread now. | 37 // IOThread now. |
40 scoped_refptr<net::HostResolver> host_resolver; | 38 scoped_refptr<net::HostResolver> host_resolver; |
41 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory; | 39 scoped_ptr<net::HttpAuthHandlerFactory> http_auth_handler_factory; |
42 scoped_ptr<net::URLSecurityManager> url_security_manager; | 40 scoped_ptr<net::URLSecurityManager> url_security_manager; |
43 ChromeNetworkDelegate network_delegate; | 41 ChromeNetworkDelegate network_delegate; |
44 }; | 42 }; |
45 | 43 |
46 IOThread(); | 44 IOThread(); |
47 | 45 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // these observers would be used accidentally after we have begun to tear | 107 // these observers would be used accidentally after we have begun to tear |
110 // down. | 108 // down. |
111 chrome_browser_net::ConnectInterceptor* speculative_interceptor_; | 109 chrome_browser_net::ConnectInterceptor* speculative_interceptor_; |
112 net::HostResolver::Observer* prefetch_observer_; | 110 net::HostResolver::Observer* prefetch_observer_; |
113 chrome_browser_net::DnsMaster* dns_master_; | 111 chrome_browser_net::DnsMaster* dns_master_; |
114 | 112 |
115 DISALLOW_COPY_AND_ASSIGN(IOThread); | 113 DISALLOW_COPY_AND_ASSIGN(IOThread); |
116 }; | 114 }; |
117 | 115 |
118 #endif // CHROME_BROWSER_IO_THREAD_H_ | 116 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |