OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_WAKE_ON_WIFI_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_NET_WAKE_ON_WIFI_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_NET_WAKE_ON_WIFI_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_NET_WAKE_ON_WIFI_MANAGER_H_ |
7 | 7 |
8 #include "base/containers/scoped_ptr_hash_map.h" | 8 #include "base/containers/scoped_ptr_hash_map.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "chrome/browser/chromeos/power/extension_event_observer.h" |
11 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
12 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
13 | 15 |
14 class Profile; | 16 class Profile; |
15 | 17 |
16 namespace base { | 18 namespace base { |
17 class DictionaryValue; | 19 class DictionaryValue; |
18 } | 20 } |
19 | 21 |
20 namespace chromeos { | 22 namespace chromeos { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 private: | 63 private: |
62 void OnProfileAdded(Profile* profile); | 64 void OnProfileAdded(Profile* profile); |
63 void OnProfileDestroyed(Profile* profile); | 65 void OnProfileDestroyed(Profile* profile); |
64 | 66 |
65 WakeOnWifiFeature current_feature_; | 67 WakeOnWifiFeature current_feature_; |
66 | 68 |
67 class WakeOnPacketConnectionObserver; | 69 class WakeOnPacketConnectionObserver; |
68 base::ScopedPtrHashMap<Profile*, WakeOnPacketConnectionObserver> | 70 base::ScopedPtrHashMap<Profile*, WakeOnPacketConnectionObserver> |
69 connection_observers_; | 71 connection_observers_; |
70 | 72 |
| 73 scoped_ptr<ExtensionEventObserver> extension_event_observer_; |
| 74 |
71 content::NotificationRegistrar registrar_; | 75 content::NotificationRegistrar registrar_; |
72 | 76 |
73 base::WeakPtrFactory<WakeOnWifiManager> weak_ptr_factory_; | 77 base::WeakPtrFactory<WakeOnWifiManager> weak_ptr_factory_; |
74 | 78 |
75 DISALLOW_COPY_AND_ASSIGN(WakeOnWifiManager); | 79 DISALLOW_COPY_AND_ASSIGN(WakeOnWifiManager); |
76 }; | 80 }; |
77 | 81 |
78 } // namespace chromeos | 82 } // namespace chromeos |
79 | 83 |
80 #endif // CHROME_BROWSER_CHROMEOS_NET_WAKE_ON_WIFI_MANAGER_H_ | 84 #endif // CHROME_BROWSER_CHROMEOS_NET_WAKE_ON_WIFI_MANAGER_H_ |
OLD | NEW |