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

Side by Side Diff: chromeos/network/network_change_notifier_chromeos.cc

Issue 300623008: Move NetworkTypePattern to its own file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/network/managed_state.cc ('k') | chromeos/network/network_device_handler_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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"
11 #include "chromeos/dbus/dbus_thread_manager.h" 11 #include "chromeos/dbus/dbus_thread_manager.h"
12 #include "chromeos/network/network_change_notifier_chromeos.h" 12 #include "chromeos/network/network_change_notifier_chromeos.h"
13 #include "chromeos/network/network_event_log.h" 13 #include "chromeos/network/network_event_log.h"
14 #include "chromeos/network/network_state.h" 14 #include "chromeos/network/network_state.h"
15 #include "chromeos/network/network_state_handler.h" 15 #include "chromeos/network/network_state_handler.h"
16 #include "chromeos/network/shill_property_util.h"
17 #include "net/base/network_change_notifier.h" 16 #include "net/base/network_change_notifier.h"
18 #include "net/dns/dns_config_service_posix.h" 17 #include "net/dns/dns_config_service_posix.h"
19 #include "third_party/cros_system_api/dbus/service_constants.h" 18 #include "third_party/cros_system_api/dbus/service_constants.h"
20 19
21 namespace chromeos { 20 namespace chromeos {
22 21
23 // 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
24 // rather than relying on watching files in /etc. 23 // rather than relying on watching files in /etc.
25 class NetworkChangeNotifierChromeos::DnsConfigService 24 class NetworkChangeNotifierChromeos::DnsConfigService
26 : public net::internal::DnsConfigServicePosix { 25 : public net::internal::DnsConfigServicePosix {
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // produce a single signal when switching between network connections. 229 // produce a single signal when switching between network connections.
231 params.ip_address_offline_delay_ = base::TimeDelta::FromMilliseconds(4000); 230 params.ip_address_offline_delay_ = base::TimeDelta::FromMilliseconds(4000);
232 params.ip_address_online_delay_ = base::TimeDelta::FromMilliseconds(1000); 231 params.ip_address_online_delay_ = base::TimeDelta::FromMilliseconds(1000);
233 params.connection_type_offline_delay_ = 232 params.connection_type_offline_delay_ =
234 base::TimeDelta::FromMilliseconds(500); 233 base::TimeDelta::FromMilliseconds(500);
235 params.connection_type_online_delay_ = base::TimeDelta::FromMilliseconds(500); 234 params.connection_type_online_delay_ = base::TimeDelta::FromMilliseconds(500);
236 return params; 235 return params;
237 } 236 }
238 237
239 } // namespace chromeos 238 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/network/managed_state.cc ('k') | chromeos/network/network_device_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698