| 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; | |
| 113 | 112 |
| 114 scoped_refptr<device::BluetoothAdapter> adapter_; | 113 scoped_refptr<device::BluetoothAdapter> adapter_; |
| 115 scoped_refptr<device::BluetoothSocket> service_socket_; | 114 scoped_refptr<device::BluetoothSocket> service_socket_; |
| 116 scoped_refptr<device::BluetoothSocket> controller_socket_; | 115 scoped_refptr<device::BluetoothSocket> controller_socket_; |
| 117 scoped_ptr<ProtoDecoder> proto_decoder_; | 116 scoped_ptr<ProtoDecoder> proto_decoder_; |
| 118 | 117 |
| 119 base::ThreadChecker thread_checker_; | 118 base::ThreadChecker thread_checker_; |
| 120 base::ObserverList<Observer> observers_; | 119 base::ObserverList<Observer> observers_; |
| 121 base::WeakPtrFactory<BluetoothHostPairingController> ptr_factory_; | 120 base::WeakPtrFactory<BluetoothHostPairingController> ptr_factory_; |
| 122 | 121 |
| 123 DISALLOW_COPY_AND_ASSIGN(BluetoothHostPairingController); | 122 DISALLOW_COPY_AND_ASSIGN(BluetoothHostPairingController); |
| 124 }; | 123 }; |
| 125 | 124 |
| 126 } // namespace pairing_chromeos | 125 } // namespace pairing_chromeos |
| 127 | 126 |
| 128 #endif // COMPONENTS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_ | 127 #endif // COMPONENTS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_ |
| OLD | NEW |