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 "chrome/browser/chromeos/net/network_change_notifier_chromeos.h" | 5 #include "chrome/browser/chromeos/net/network_change_notifier_chromeos.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "chrome/browser/chromeos/cros/cros_library.h" | 8 #include "chrome/browser/chromeos/cros/cros_library.h" |
9 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | 9 #include "chromeos/dbus/dbus_thread_manager.h" |
10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
11 | 11 |
12 using content::BrowserThread; | 12 using content::BrowserThread; |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 // Delay for online change notification reporting. | 16 // Delay for online change notification reporting. |
17 const int kOnlineNotificationDelayMS = 500; | 17 const int kOnlineNotificationDelayMS = 500; |
18 const int kInitialNotificationCheckDelayMS = 1000; | 18 const int kInitialNotificationCheckDelayMS = 1000; |
19 | 19 |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 | 222 |
223 // static | 223 // static |
224 void NetworkChangeNotifierChromeos::UpdateInitialState( | 224 void NetworkChangeNotifierChromeos::UpdateInitialState( |
225 NetworkChangeNotifierChromeos* self) { | 225 NetworkChangeNotifierChromeos* self) { |
226 chromeos::NetworkLibrary* net = | 226 chromeos::NetworkLibrary* net = |
227 chromeos::CrosLibrary::Get()->GetNetworkLibrary(); | 227 chromeos::CrosLibrary::Get()->GetNetworkLibrary(); |
228 self->UpdateNetworkState(net); | 228 self->UpdateNetworkState(net); |
229 } | 229 } |
230 | 230 |
231 } // namespace chromeos | 231 } // namespace chromeos |
OLD | NEW |