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 #include <string> | 5 #include <string> |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 // DNS config services on Chrome OS are signalled by the network state handler | 22 // DNS config services on Chrome OS are signalled by the network state handler |
23 // rather than relying on watching files in /etc. | 23 // rather than relying on watching files in /etc. |
24 class NetworkChangeNotifierChromeos::DnsConfigService | 24 class NetworkChangeNotifierChromeos::DnsConfigService |
25 : public net::internal::DnsConfigServicePosix { | 25 : public net::internal::DnsConfigServicePosix { |
26 public: | 26 public: |
27 DnsConfigService(); | 27 DnsConfigService(); |
28 virtual ~DnsConfigService(); | 28 virtual ~DnsConfigService(); |
29 | 29 |
30 // net::internal::DnsConfigService() overrides. | 30 // net::internal::DnsConfigService() overrides. |
31 virtual bool StartWatching() OVERRIDE; | 31 virtual bool StartWatching() override; |
32 | 32 |
33 virtual void OnNetworkChange(); | 33 virtual void OnNetworkChange(); |
34 }; | 34 }; |
35 | 35 |
36 NetworkChangeNotifierChromeos::DnsConfigService::DnsConfigService() { | 36 NetworkChangeNotifierChromeos::DnsConfigService::DnsConfigService() { |
37 } | 37 } |
38 | 38 |
39 NetworkChangeNotifierChromeos::DnsConfigService::~DnsConfigService() { | 39 NetworkChangeNotifierChromeos::DnsConfigService::~DnsConfigService() { |
40 } | 40 } |
41 | 41 |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 // produce a single signal when switching between network connections. | 231 // produce a single signal when switching between network connections. |
232 params.ip_address_offline_delay_ = base::TimeDelta::FromMilliseconds(4000); | 232 params.ip_address_offline_delay_ = base::TimeDelta::FromMilliseconds(4000); |
233 params.ip_address_online_delay_ = base::TimeDelta::FromMilliseconds(1000); | 233 params.ip_address_online_delay_ = base::TimeDelta::FromMilliseconds(1000); |
234 params.connection_type_offline_delay_ = | 234 params.connection_type_offline_delay_ = |
235 base::TimeDelta::FromMilliseconds(500); | 235 base::TimeDelta::FromMilliseconds(500); |
236 params.connection_type_online_delay_ = base::TimeDelta::FromMilliseconds(500); | 236 params.connection_type_online_delay_ = base::TimeDelta::FromMilliseconds(500); |
237 return params; | 237 return params; |
238 } | 238 } |
239 | 239 |
240 } // namespace chromeos | 240 } // namespace chromeos |
OLD | NEW |