OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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_TETHER_TETHER_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_TETHER_TETHER_SERVICE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_TETHER_TETHER_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_TETHER_TETHER_SERVICE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 private: | 84 private: |
85 friend class TetherServiceTest; | 85 friend class TetherServiceTest; |
86 | 86 |
87 chromeos::NetworkStateHandler::TechnologyState GetTetherTechnologyState(); | 87 chromeos::NetworkStateHandler::TechnologyState GetTetherTechnologyState(); |
88 | 88 |
89 void OnBluetoothAdapterFetched( | 89 void OnBluetoothAdapterFetched( |
90 scoped_refptr<device::BluetoothAdapter> adapter); | 90 scoped_refptr<device::BluetoothAdapter> adapter); |
91 | 91 |
92 bool IsBluetoothAvailable() const; | 92 bool IsBluetoothAvailable() const; |
93 | 93 |
| 94 bool IsCellularAvailableButNotEnabled() const; |
| 95 |
94 // Whether Tether hosts are available. | 96 // Whether Tether hosts are available. |
95 bool HasSyncedTetherHosts() const; | 97 bool HasSyncedTetherHosts() const; |
96 | 98 |
97 // Whether the Tether feature has been enabled via an about or command line | 99 // Whether the Tether feature has been enabled via an about or command line |
98 // flag. | 100 // flag. |
99 bool IsFeatureFlagEnabled() const; | 101 bool IsFeatureFlagEnabled() const; |
100 | 102 |
101 // Whether Tether is allowed to be used. If the controlling preference | 103 // Whether Tether is allowed to be used. If the controlling preference |
102 // is set (from policy), this returns the preference value. Otherwise, it is | 104 // is set (from policy), this returns the preference value. Otherwise, it is |
103 // permitted if the flag is enabled. | 105 // permitted if the flag is enabled. |
(...skipping 17 matching lines...) Expand all Loading... |
121 | 123 |
122 PrefChangeRegistrar registrar_; | 124 PrefChangeRegistrar registrar_; |
123 scoped_refptr<device::BluetoothAdapter> adapter_; | 125 scoped_refptr<device::BluetoothAdapter> adapter_; |
124 | 126 |
125 base::WeakPtrFactory<TetherService> weak_ptr_factory_; | 127 base::WeakPtrFactory<TetherService> weak_ptr_factory_; |
126 | 128 |
127 DISALLOW_COPY_AND_ASSIGN(TetherService); | 129 DISALLOW_COPY_AND_ASSIGN(TetherService); |
128 }; | 130 }; |
129 | 131 |
130 #endif // CHROME_BROWSER_CHROMEOS_TETHER_TETHER_SERVICE_H_ | 132 #endif // CHROME_BROWSER_CHROMEOS_TETHER_TETHER_SERVICE_H_ |
OLD | NEW |