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 COMPONENTS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_ | 5 #ifndef COMPONENTS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_ |
6 #define COMPONENTS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_ | 6 #define COMPONENTS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 void AuthorizePairing(device::BluetoothDevice* device) override; | 102 void AuthorizePairing(device::BluetoothDevice* device) override; |
103 | 103 |
104 Stage current_stage_; | 104 Stage current_stage_; |
105 std::string device_name_; | 105 std::string device_name_; |
106 std::string confirmation_code_; | 106 std::string confirmation_code_; |
107 std::string enrollment_domain_; | 107 std::string enrollment_domain_; |
108 Connectivity connectivity_status_; | 108 Connectivity connectivity_status_; |
109 UpdateStatus update_status_; | 109 UpdateStatus update_status_; |
110 EnrollmentStatus enrollment_status_; | 110 EnrollmentStatus enrollment_status_; |
111 std::string permanent_id_; | 111 std::string permanent_id_; |
| 112 bool was_powered_ = false; |
112 | 113 |
113 scoped_refptr<device::BluetoothAdapter> adapter_; | 114 scoped_refptr<device::BluetoothAdapter> adapter_; |
114 scoped_refptr<device::BluetoothSocket> service_socket_; | 115 scoped_refptr<device::BluetoothSocket> service_socket_; |
115 scoped_refptr<device::BluetoothSocket> controller_socket_; | 116 scoped_refptr<device::BluetoothSocket> controller_socket_; |
116 scoped_ptr<ProtoDecoder> proto_decoder_; | 117 scoped_ptr<ProtoDecoder> proto_decoder_; |
117 | 118 |
118 base::ThreadChecker thread_checker_; | 119 base::ThreadChecker thread_checker_; |
119 base::ObserverList<Observer> observers_; | 120 base::ObserverList<Observer> observers_; |
120 base::WeakPtrFactory<BluetoothHostPairingController> ptr_factory_; | 121 base::WeakPtrFactory<BluetoothHostPairingController> ptr_factory_; |
121 | 122 |
122 DISALLOW_COPY_AND_ASSIGN(BluetoothHostPairingController); | 123 DISALLOW_COPY_AND_ASSIGN(BluetoothHostPairingController); |
123 }; | 124 }; |
124 | 125 |
125 } // namespace pairing_chromeos | 126 } // namespace pairing_chromeos |
126 | 127 |
127 #endif // COMPONENTS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_ | 128 #endif // COMPONENTS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_ |
OLD | NEW |