OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROMEOS_COMPONENTS_TETHER_TETHER_DEVICE_STATE_MANAGER_H_ |
| 6 #define CHROMEOS_COMPONENTS_TETHER_TETHER_DEVICE_STATE_MANAGER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "chromeos/network/network_state_handler.h" |
| 10 #include "chromeos/network/network_state_handler_observer.h" |
| 11 |
| 12 namespace chromeos { |
| 13 |
| 14 class NetworkStateHandler; |
| 15 |
| 16 namespace tether { |
| 17 |
| 18 // Manages the device state of tether networks. The tether state is: |
| 19 // *TECHNOLOGY_PROHIBITED when tethering is disallowed by policy. |
| 20 // *TECHNOLOGY_UNAVAILABLE when tethering is allowed by policy, but either |
| 21 // the device has no Bluetooth capabilities or the logged-in user has no |
| 22 // tether hosts associated with their account. |
| 23 // *TECHNOLOGY_AVAILABLE when tethering is allowed by policy, the device has |
| 24 // Bluetooth capabilities, the logged-in user has tether hosts associated |
| 25 // with their account, but the Instant Tethering setting is disabled. |
| 26 // *TECHNOLOGY_ENABLED when tethering is allowed by policy, the device has |
| 27 // Bluetooth capabilities, the logged-in user has tether hosts associated |
| 28 // with their account, and the Instant Tethering setting is enabled. |
| 29 // TODO(hansberry): Complete this class description when implemented. |
| 30 class TetherDeviceStateManager : public NetworkStateHandlerObserver { |
| 31 public: |
| 32 explicit TetherDeviceStateManager(NetworkStateHandler* network_state_handler); |
| 33 ~TetherDeviceStateManager() override; |
| 34 |
| 35 // NetworkStateHandlerObserver: |
| 36 void DeviceListChanged() override; |
| 37 |
| 38 private: |
| 39 NetworkStateHandler* network_state_handler_; |
| 40 |
| 41 DISALLOW_COPY_AND_ASSIGN(TetherDeviceStateManager); |
| 42 }; |
| 43 |
| 44 } // namespace tether |
| 45 |
| 46 } // namespace chromeos |
| 47 |
| 48 #endif // CHROMEOS_COMPONENTS_TETHER_TETHER_DEVICE_STATE_MANAGER_H_ |
OLD | NEW |