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 13270005: Display DNS probe results. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: ...actually add the unittests Created 7 years, 6 months 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
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"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/prefs/pref_member.h" 15 #include "base/prefs/pref_member.h"
16 #include "chrome/browser/net/ssl_config_service_manager.h" 16 #include "chrome/browser/net/ssl_config_service_manager.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 #include "content/public/browser/browser_thread_delegate.h" 18 #include "content/public/browser/browser_thread_delegate.h"
19 #include "net/base/network_change_notifier.h" 19 #include "net/base/network_change_notifier.h"
20 #include "net/http/http_network_session.h" 20 #include "net/http/http_network_session.h"
21 #include "net/socket/next_proto.h" 21 #include "net/socket/next_proto.h"
22 22
23 class ChromeNetLog; 23 class ChromeNetLog;
24 class CommandLine; 24 class CommandLine;
25 class DnsProbeService;
25 class PrefProxyConfigTrackerImpl; 26 class PrefProxyConfigTrackerImpl;
26 class PrefService; 27 class PrefService;
27 class PrefRegistrySimple; 28 class PrefRegistrySimple;
28 class SystemURLRequestContextGetter; 29 class SystemURLRequestContextGetter;
29 30
30 namespace chrome_browser_net { 31 namespace chrome_browser_net {
31 class DnsProbeService;
32 class HttpPipeliningCompatibilityClient; 32 class HttpPipeliningCompatibilityClient;
33 class LoadTimeStats; 33 class LoadTimeStats;
34 } 34 }
35 35
36 namespace extensions { 36 namespace extensions {
37 class EventRouterForwarder; 37 class EventRouterForwarder;
38 } 38 }
39 39
40 namespace net { 40 namespace net {
41 class CertVerifier; 41 class CertVerifier;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 Optional<bool> enable_spdy_credential_frames; 162 Optional<bool> enable_spdy_credential_frames;
163 Optional<bool> enable_spdy_compression; 163 Optional<bool> enable_spdy_compression;
164 Optional<bool> enable_spdy_ping_based_connection_checking; 164 Optional<bool> enable_spdy_ping_based_connection_checking;
165 Optional<net::NextProto> spdy_default_protocol; 165 Optional<net::NextProto> spdy_default_protocol;
166 Optional<bool> enable_quic; 166 Optional<bool> enable_quic;
167 Optional<net::HostPortPair> origin_to_force_quic_on; 167 Optional<net::HostPortPair> origin_to_force_quic_on;
168 bool enable_user_alternate_protocol_ports; 168 bool enable_user_alternate_protocol_ports;
169 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a 169 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a
170 // main frame load fails with a DNS error in order to provide more useful 170 // main frame load fails with a DNS error in order to provide more useful
171 // information to the renderer so it can show a more specific error page. 171 // information to the renderer so it can show a more specific error page.
172 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; 172 scoped_ptr<DnsProbeService> dns_probe_service;
173 scoped_ptr<net::NetworkTimeNotifier> network_time_notifier; 173 scoped_ptr<net::NetworkTimeNotifier> network_time_notifier;
174 }; 174 };
175 175
176 // |net_log| must either outlive the IOThread or be NULL. 176 // |net_log| must either outlive the IOThread or be NULL.
177 IOThread(PrefService* local_state, 177 IOThread(PrefService* local_state,
178 policy::PolicyService* policy_service, 178 policy::PolicyService* policy_service,
179 ChromeNetLog* net_log, 179 ChromeNetLog* net_log,
180 extensions::EventRouterForwarder* extension_event_router_forwarder); 180 extensions::EventRouterForwarder* extension_event_router_forwarder);
181 181
182 virtual ~IOThread(); 182 virtual ~IOThread();
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 // True if SPDY is disabled by policy. 308 // True if SPDY is disabled by policy.
309 bool is_spdy_disabled_by_policy_; 309 bool is_spdy_disabled_by_policy_;
310 310
311 base::WeakPtrFactory<IOThread> weak_factory_; 311 base::WeakPtrFactory<IOThread> weak_factory_;
312 312
313 DISALLOW_COPY_AND_ASSIGN(IOThread); 313 DISALLOW_COPY_AND_ASSIGN(IOThread);
314 }; 314 };
315 315
316 #endif // CHROME_BROWSER_IO_THREAD_H_ 316 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698