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

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

Issue 12212048: Linux/ChromeOS Chromium style checker cleanup, chrome/browser edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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 #include "chrome/browser/io_thread.h" 5 #include "chrome/browser/io_thread.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 public net::NetworkChangeNotifier::NetworkChangeObserver { 244 public net::NetworkChangeNotifier::NetworkChangeObserver {
245 public: 245 public:
246 // |net_log| must remain valid throughout our lifetime. 246 // |net_log| must remain valid throughout our lifetime.
247 explicit LoggingNetworkChangeObserver(net::NetLog* net_log) 247 explicit LoggingNetworkChangeObserver(net::NetLog* net_log)
248 : net_log_(net_log) { 248 : net_log_(net_log) {
249 net::NetworkChangeNotifier::AddIPAddressObserver(this); 249 net::NetworkChangeNotifier::AddIPAddressObserver(this);
250 net::NetworkChangeNotifier::AddConnectionTypeObserver(this); 250 net::NetworkChangeNotifier::AddConnectionTypeObserver(this);
251 net::NetworkChangeNotifier::AddNetworkChangeObserver(this); 251 net::NetworkChangeNotifier::AddNetworkChangeObserver(this);
252 } 252 }
253 253
254 ~LoggingNetworkChangeObserver() { 254 virtual ~LoggingNetworkChangeObserver() {
255 net::NetworkChangeNotifier::RemoveIPAddressObserver(this); 255 net::NetworkChangeNotifier::RemoveIPAddressObserver(this);
256 net::NetworkChangeNotifier::RemoveConnectionTypeObserver(this); 256 net::NetworkChangeNotifier::RemoveConnectionTypeObserver(this);
257 net::NetworkChangeNotifier::RemoveNetworkChangeObserver(this); 257 net::NetworkChangeNotifier::RemoveNetworkChangeObserver(this);
258 } 258 }
259 259
260 // NetworkChangeNotifier::IPAddressObserver implementation. 260 // NetworkChangeNotifier::IPAddressObserver implementation.
261 virtual void OnIPAddressChanged() OVERRIDE { 261 virtual void OnIPAddressChanged() OVERRIDE {
262 VLOG(1) << "Observed a change to the network IP addresses"; 262 VLOG(1) << "Observed a change to the network IP addresses";
263 263
264 net_log_->AddGlobalEntry(net::NetLog::TYPE_NETWORK_IP_ADDRESSES_CHANGED); 264 net_log_->AddGlobalEntry(net::NetLog::TYPE_NETWORK_IP_ADDRESSES_CHANGED);
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 globals_->system_request_context.reset( 912 globals_->system_request_context.reset(
913 ConstructSystemRequestContext(globals_, net_log_)); 913 ConstructSystemRequestContext(globals_, net_log_));
914 914
915 sdch_manager_->set_sdch_fetcher( 915 sdch_manager_->set_sdch_fetcher(
916 new SdchDictionaryFetcher(system_url_request_context_getter_.get())); 916 new SdchDictionaryFetcher(system_url_request_context_getter_.get()));
917 } 917 }
918 918
919 void IOThread::UpdateDnsClientEnabled() { 919 void IOThread::UpdateDnsClientEnabled() {
920 globals()->host_resolver->SetDnsClientEnabled(*dns_client_enabled_); 920 globals()->host_resolver->SetDnsClientEnabled(*dns_client_enabled_);
921 } 921 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698