| OLD | NEW |
| 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 // This is a small utility that watches for and logs network changes. | 5 // This is a small utility that watches for and logs network changes. |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 12 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 13 #include "base/json/json_writer.h" | 12 #include "base/json/json_writer.h" |
| 14 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/macros.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
| 17 #include "base/strings/string_split.h" | 17 #include "base/strings/string_split.h" |
| 18 #include "base/values.h" | 18 #include "base/values.h" |
| 19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
| 20 #include "net/base/network_change_notifier.h" | 20 #include "net/base/network_change_notifier.h" |
| 21 #include "net/proxy/proxy_config.h" | 21 #include "net/proxy/proxy_config.h" |
| 22 #include "net/proxy/proxy_config_service.h" | 22 #include "net/proxy/proxy_config_service.h" |
| 23 #include "net/proxy/proxy_service.h" | 23 #include "net/proxy/proxy_service.h" |
| 24 | 24 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 proxy_config_service->RemoveObserver(&net_watcher); | 218 proxy_config_service->RemoveObserver(&net_watcher); |
| 219 | 219 |
| 220 // Uses |network_change_notifier|. | 220 // Uses |network_change_notifier|. |
| 221 net::NetworkChangeNotifier::RemoveDNSObserver(&net_watcher); | 221 net::NetworkChangeNotifier::RemoveDNSObserver(&net_watcher); |
| 222 net::NetworkChangeNotifier::RemoveConnectionTypeObserver(&net_watcher); | 222 net::NetworkChangeNotifier::RemoveConnectionTypeObserver(&net_watcher); |
| 223 net::NetworkChangeNotifier::RemoveIPAddressObserver(&net_watcher); | 223 net::NetworkChangeNotifier::RemoveIPAddressObserver(&net_watcher); |
| 224 net::NetworkChangeNotifier::RemoveNetworkChangeObserver(&net_watcher); | 224 net::NetworkChangeNotifier::RemoveNetworkChangeObserver(&net_watcher); |
| 225 | 225 |
| 226 return 0; | 226 return 0; |
| 227 } | 227 } |
| OLD | NEW |