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

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

Issue 491943004: Update the pairing API to include configuration and enrollment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile error 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 | Annotate | Revision Log
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 const std::string& error_message); 59 const std::string& error_message);
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 70
70 // ProtoDecoder::Observer: 71 // ProtoDecoder::Observer:
71 virtual void OnHostStatusMessage( 72 virtual void OnHostStatusMessage(
72 const pairing_api::HostStatus& message) OVERRIDE; 73 const pairing_api::HostStatus& message) OVERRIDE;
73 virtual void OnConfigureHostMessage( 74 virtual void OnConfigureHostMessage(
74 const pairing_api::ConfigureHost& message) OVERRIDE; 75 const pairing_api::ConfigureHost& message) OVERRIDE;
75 virtual void OnPairDevicesMessage( 76 virtual void OnPairDevicesMessage(
76 const pairing_api::PairDevices& message) OVERRIDE; 77 const pairing_api::PairDevices& message) OVERRIDE;
77 virtual void OnCompleteSetupMessage( 78 virtual void OnCompleteSetupMessage(
78 const pairing_api::CompleteSetup& message) OVERRIDE; 79 const pairing_api::CompleteSetup& message) OVERRIDE;
(...skipping 26 matching lines...) Expand all
105 base::ThreadChecker thread_checker_; 106 base::ThreadChecker thread_checker_;
106 ObserverList<Observer> observers_; 107 ObserverList<Observer> observers_;
107 base::WeakPtrFactory<BluetoothHostPairingController> ptr_factory_; 108 base::WeakPtrFactory<BluetoothHostPairingController> ptr_factory_;
108 109
109 DISALLOW_COPY_AND_ASSIGN(BluetoothHostPairingController); 110 DISALLOW_COPY_AND_ASSIGN(BluetoothHostPairingController);
110 }; 111 };
111 112
112 } // namespace pairing_chromeos 113 } // namespace pairing_chromeos
113 114
114 #endif // CHROMEOS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_ 115 #endif // CHROMEOS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_
OLDNEW
« no previous file with comments | « components/pairing/bluetooth_controller_pairing_controller.cc ('k') | components/pairing/bluetooth_host_pairing_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698