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

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

Issue 11620007: Switch from OnIPAddressChanged and OnConnectionTypeChange to OnNetworkChanged Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
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/public/pref_member.h" 15 #include "base/prefs/public/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 IOThreadLoggingNetworkChangeObserver;
szym 2013/01/20 06:52:08 Why does this class need IOThread prefix?
25 class PrefProxyConfigTrackerImpl; 26 class PrefProxyConfigTrackerImpl;
26 class PrefService; 27 class PrefService;
27 class PrefServiceSimple; 28 class PrefServiceSimple;
28 class SystemURLRequestContextGetter; 29 class SystemURLRequestContextGetter;
29 30
30 namespace chrome_browser_net { 31 namespace chrome_browser_net {
31 class DnsProbeService; 32 class DnsProbeService;
32 class HttpPipeliningCompatibilityClient; 33 class HttpPipeliningCompatibilityClient;
33 class LoadTimeStats; 34 class LoadTimeStats;
34 } 35 }
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // to the IOThread. IOThread owns them all, despite not using scoped_ptr. 258 // to the IOThread. IOThread owns them all, despite not using scoped_ptr.
258 // This is because the destructor of IOThread runs on the wrong thread. All 259 // This is because the destructor of IOThread runs on the wrong thread. All
259 // member variables should be deleted in CleanUp(). 260 // member variables should be deleted in CleanUp().
260 261
261 // These member variables are initialized in Init() and do not change for the 262 // These member variables are initialized in Init() and do not change for the
262 // lifetime of the IO thread. 263 // lifetime of the IO thread.
263 264
264 Globals* globals_; 265 Globals* globals_;
265 266
266 // Observer that logs network changes to the ChromeNetLog. 267 // Observer that logs network changes to the ChromeNetLog.
267 class LoggingNetworkChangeObserver; 268 scoped_ptr<IOThreadLoggingNetworkChangeObserver> network_change_observer_;
268 scoped_ptr<LoggingNetworkChangeObserver> network_change_observer_;
269 269
270 BooleanPrefMember system_enable_referrers_; 270 BooleanPrefMember system_enable_referrers_;
271 271
272 BooleanPrefMember dns_client_enabled_; 272 BooleanPrefMember dns_client_enabled_;
273 273
274 // Store HTTP Auth-related policies in this thread. 274 // Store HTTP Auth-related policies in this thread.
275 std::string auth_schemes_; 275 std::string auth_schemes_;
276 bool negotiate_disable_cname_lookup_; 276 bool negotiate_disable_cname_lookup_;
277 bool negotiate_enable_port_; 277 bool negotiate_enable_port_;
278 std::string auth_server_whitelist_; 278 std::string auth_server_whitelist_;
(...skipping 18 matching lines...) Expand all
297 297
298 // True if SPDY is disabled by policy. 298 // True if SPDY is disabled by policy.
299 bool is_spdy_disabled_by_policy_; 299 bool is_spdy_disabled_by_policy_;
300 300
301 base::WeakPtrFactory<IOThread> weak_factory_; 301 base::WeakPtrFactory<IOThread> weak_factory_;
302 302
303 DISALLOW_COPY_AND_ASSIGN(IOThread); 303 DISALLOW_COPY_AND_ASSIGN(IOThread);
304 }; 304 };
305 305
306 #endif // CHROME_BROWSER_IO_THREAD_H_ 306 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698