| 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_CONTROLLER_PAIRING_CONTROLLER_H_ | 5 #ifndef COMPONENTS_PAIRING_BLUETOOTH_CONTROLLER_PAIRING_CONTROLLER_H_ |
| 6 #define COMPONENTS_PAIRING_BLUETOOTH_CONTROLLER_PAIRING_CONTROLLER_H_ | 6 #define COMPONENTS_PAIRING_BLUETOOTH_CONTROLLER_PAIRING_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // ControllerPairingController: | 59 // ControllerPairingController: |
| 60 void AddObserver(ControllerPairingController::Observer* observer) override; | 60 void AddObserver(ControllerPairingController::Observer* observer) override; |
| 61 void RemoveObserver(ControllerPairingController::Observer* observer) override; | 61 void RemoveObserver(ControllerPairingController::Observer* observer) override; |
| 62 Stage GetCurrentStage() override; | 62 Stage GetCurrentStage() override; |
| 63 void StartPairing() override; | 63 void StartPairing() override; |
| 64 DeviceIdList GetDiscoveredDevices() override; | 64 DeviceIdList GetDiscoveredDevices() override; |
| 65 void ChooseDeviceForPairing(const std::string& device_id) override; | 65 void ChooseDeviceForPairing(const std::string& device_id) override; |
| 66 void RepeatDiscovery() override; | 66 void RepeatDiscovery() override; |
| 67 std::string GetConfirmationCode() override; | 67 std::string GetConfirmationCode() override; |
| 68 void SetConfirmationCodeIsCorrect(bool correct) override; | 68 void SetConfirmationCodeIsCorrect(bool correct) override; |
| 69 void SetHostNetwork(const std::string& onc_spec) override; |
| 69 void SetHostConfiguration(bool accepted_eula, | 70 void SetHostConfiguration(bool accepted_eula, |
| 70 const std::string& lang, | 71 const std::string& lang, |
| 71 const std::string& timezone, | 72 const std::string& timezone, |
| 72 bool send_reports, | 73 bool send_reports, |
| 73 const std::string& keyboard_layout) override; | 74 const std::string& keyboard_layout) override; |
| 74 void OnAuthenticationDone(const std::string& domain, | 75 void OnAuthenticationDone(const std::string& domain, |
| 75 const std::string& auth_token) override; | 76 const std::string& auth_token) override; |
| 76 void StartSession() override; | 77 void StartSession() override; |
| 77 | 78 |
| 78 // ProtoDecoder::Observer: | 79 // ProtoDecoder::Observer: |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 base::ThreadChecker thread_checker_; | 116 base::ThreadChecker thread_checker_; |
| 116 base::ObserverList<ControllerPairingController::Observer> observers_; | 117 base::ObserverList<ControllerPairingController::Observer> observers_; |
| 117 base::WeakPtrFactory<BluetoothControllerPairingController> ptr_factory_; | 118 base::WeakPtrFactory<BluetoothControllerPairingController> ptr_factory_; |
| 118 | 119 |
| 119 DISALLOW_COPY_AND_ASSIGN(BluetoothControllerPairingController); | 120 DISALLOW_COPY_AND_ASSIGN(BluetoothControllerPairingController); |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 } // namespace pairing_chromeos | 123 } // namespace pairing_chromeos |
| 123 | 124 |
| 124 #endif // COMPONENTS_PAIRING_BLUETOOTH_CONTROLLER_PAIRING_CONTROLLER_H_ | 125 #endif // COMPONENTS_PAIRING_BLUETOOTH_CONTROLLER_PAIRING_CONTROLLER_H_ |
| OLD | NEW |