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 #ifndef CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "chrome/browser/chromeos/cros/network_library.h" | 12 #include "chrome/browser/chromeos/cros/network_library.h" |
13 #include "chrome/browser/chromeos/dbus/power_manager_client.h" | 13 #include "chromeos/dbus/power_manager_client.h" |
14 #include "net/base/network_change_notifier.h" | 14 #include "net/base/network_change_notifier.h" |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 | 17 |
18 class OnlineStatusReportThreadTask; | 18 class OnlineStatusReportThreadTask; |
19 | 19 |
20 class NetworkChangeNotifierChromeos | 20 class NetworkChangeNotifierChromeos |
21 : public net::NetworkChangeNotifier, | 21 : public net::NetworkChangeNotifier, |
22 public chromeos::PowerManagerClient::Observer, | 22 public chromeos::PowerManagerClient::Observer, |
23 public chromeos::NetworkLibrary::NetworkObserver, | 23 public chromeos::NetworkLibrary::NetworkObserver, |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // The last reported online state. | 81 // The last reported online state. |
82 bool is_online_; | 82 bool is_online_; |
83 base::WeakPtrFactory<NetworkChangeNotifierChromeos> weak_factory_; | 83 base::WeakPtrFactory<NetworkChangeNotifierChromeos> weak_factory_; |
84 | 84 |
85 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierChromeos); | 85 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierChromeos); |
86 }; | 86 }; |
87 | 87 |
88 } // namespace chromeos | 88 } // namespace chromeos |
89 | 89 |
90 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ | 90 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ |
OLD | NEW |