OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CONNECTION_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_NET_WAKE_ON_WIFI_CONNECTION_OBSERVER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_NET_WAKE_ON_WIFI_CONNECTION_OBSERVER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_NET_WAKE_ON_WIFI_CONNECTION_OBSERVER_H_ |
7 | 7 |
8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "chrome/browser/chromeos/net/wake_on_wifi_manager.h" | 10 #include "chrome/browser/chromeos/net/wake_on_wifi_manager.h" |
11 #include "components/gcm_driver/gcm_connection_observer.h" | 11 #include "components/gcm_driver/gcm_connection_observer.h" |
12 #include "content/public/browser/notification_observer.h" | 12 #include "content/public/browser/notification_observer.h" |
13 #include "net/base/ip_endpoint.h" | 13 #include "net/base/ip_endpoint.h" |
14 | 14 |
15 class Profile; | 15 class Profile; |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 | 18 |
19 class ConnectionObserverTest; | |
20 class NetworkDeviceHandler; | 19 class NetworkDeviceHandler; |
21 | 20 |
22 // Simple class that listens for a connection to the GCM server and passes the | 21 // Simple class that listens for a connection to the GCM server and passes the |
23 // connection information down to shill. Each instance of this class is | 22 // connection information down to shill. Each instance of this class is |
24 // associated with a profile. | 23 // associated with a profile. |
25 class WakeOnWifiConnectionObserver : public gcm::GCMConnectionObserver { | 24 class WakeOnWifiConnectionObserver : public gcm::GCMConnectionObserver { |
26 public: | 25 public: |
27 ~WakeOnWifiConnectionObserver() override; | 26 ~WakeOnWifiConnectionObserver() override; |
28 | 27 |
29 // Handles the case when the wifi properties have been received along with | 28 // Handles the case when the wifi properties have been received along with |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 bool wifi_properties_received_; | 60 bool wifi_properties_received_; |
62 WakeOnWifiManager::WakeOnWifiFeature feature_; | 61 WakeOnWifiManager::WakeOnWifiFeature feature_; |
63 NetworkDeviceHandler* network_device_handler_; | 62 NetworkDeviceHandler* network_device_handler_; |
64 | 63 |
65 DISALLOW_COPY_AND_ASSIGN(WakeOnWifiConnectionObserver); | 64 DISALLOW_COPY_AND_ASSIGN(WakeOnWifiConnectionObserver); |
66 }; | 65 }; |
67 | 66 |
68 } // namespace chromeos | 67 } // namespace chromeos |
69 | 68 |
70 #endif // CHROME_BROWSER_CHROMEOS_NET_WAKE_ON_WIFI_CONNECTION_OBSERVER_H_ | 69 #endif // CHROME_BROWSER_CHROMEOS_NET_WAKE_ON_WIFI_CONNECTION_OBSERVER_H_ |
OLD | NEW |