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 CHROMEOS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_ | 5 #ifndef CHROMEOS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_ |
6 #define CHROMEOS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_ | 6 #define CHROMEOS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 // HostPairingController: | 61 // HostPairingController: |
62 virtual void AddObserver(Observer* observer) OVERRIDE; | 62 virtual void AddObserver(Observer* observer) OVERRIDE; |
63 virtual void RemoveObserver(Observer* observer) OVERRIDE; | 63 virtual void RemoveObserver(Observer* observer) OVERRIDE; |
64 virtual Stage GetCurrentStage() OVERRIDE; | 64 virtual Stage GetCurrentStage() OVERRIDE; |
65 virtual void StartPairing() OVERRIDE; | 65 virtual void StartPairing() OVERRIDE; |
66 virtual std::string GetDeviceName() OVERRIDE; | 66 virtual std::string GetDeviceName() OVERRIDE; |
67 virtual std::string GetConfirmationCode() OVERRIDE; | 67 virtual std::string GetConfirmationCode() OVERRIDE; |
68 virtual std::string GetEnrollmentDomain() OVERRIDE; | 68 virtual std::string GetEnrollmentDomain() OVERRIDE; |
69 virtual void OnUpdateStatusChanged(UpdateStatus update_status) OVERRIDE; | 69 virtual void OnUpdateStatusChanged(UpdateStatus update_status) OVERRIDE; |
| 70 virtual void SetEnrollmentComplete(bool success) OVERRIDE; |
70 | 71 |
71 // ProtoDecoder::Observer: | 72 // ProtoDecoder::Observer: |
72 virtual void OnHostStatusMessage( | 73 virtual void OnHostStatusMessage( |
73 const pairing_api::HostStatus& message) OVERRIDE; | 74 const pairing_api::HostStatus& message) OVERRIDE; |
74 virtual void OnConfigureHostMessage( | 75 virtual void OnConfigureHostMessage( |
75 const pairing_api::ConfigureHost& message) OVERRIDE; | 76 const pairing_api::ConfigureHost& message) OVERRIDE; |
76 virtual void OnPairDevicesMessage( | 77 virtual void OnPairDevicesMessage( |
77 const pairing_api::PairDevices& message) OVERRIDE; | 78 const pairing_api::PairDevices& message) OVERRIDE; |
78 virtual void OnCompleteSetupMessage( | 79 virtual void OnCompleteSetupMessage( |
79 const pairing_api::CompleteSetup& message) OVERRIDE; | 80 const pairing_api::CompleteSetup& message) OVERRIDE; |
(...skipping 26 matching lines...) Expand all Loading... |
106 base::ThreadChecker thread_checker_; | 107 base::ThreadChecker thread_checker_; |
107 ObserverList<Observer> observers_; | 108 ObserverList<Observer> observers_; |
108 base::WeakPtrFactory<BluetoothHostPairingController> ptr_factory_; | 109 base::WeakPtrFactory<BluetoothHostPairingController> ptr_factory_; |
109 | 110 |
110 DISALLOW_COPY_AND_ASSIGN(BluetoothHostPairingController); | 111 DISALLOW_COPY_AND_ASSIGN(BluetoothHostPairingController); |
111 }; | 112 }; |
112 | 113 |
113 } // namespace pairing_chromeos | 114 } // namespace pairing_chromeos |
114 | 115 |
115 #endif // CHROMEOS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_ | 116 #endif // CHROMEOS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_ |
OLD | NEW |