Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(874)

Side by Side Diff: components/pairing/bluetooth_host_pairing_controller.h

Issue 555003002: Add method for telling the Pairing API that enrollment is complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/host_pairing_screen.cc ('k') | components/pairing/bluetooth_host_pairing_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698