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

Side by Side Diff: components/pairing/bluetooth_controller_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_CONTROLLER_PAIRING_FLOW_H_ 5 #ifndef CHROMEOS_PAIRING_BLUETOOTH_CONTROLLER_PAIRING_FLOW_H_
6 #define CHROMEOS_PAIRING_BLUETOOTH_CONTROLLER_PAIRING_FLOW_H_ 6 #define CHROMEOS_PAIRING_BLUETOOTH_CONTROLLER_PAIRING_FLOW_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
59 ControllerPairingController::Observer* observer) OVERRIDE; 59 ControllerPairingController::Observer* observer) OVERRIDE;
60 virtual void RemoveObserver( 60 virtual void RemoveObserver(
61 ControllerPairingController::Observer* observer) OVERRIDE; 61 ControllerPairingController::Observer* observer) OVERRIDE;
62 virtual Stage GetCurrentStage() OVERRIDE; 62 virtual Stage GetCurrentStage() OVERRIDE;
63 virtual void StartPairing() OVERRIDE; 63 virtual void StartPairing() OVERRIDE;
64 virtual DeviceIdList GetDiscoveredDevices() OVERRIDE; 64 virtual DeviceIdList GetDiscoveredDevices() OVERRIDE;
65 virtual void ChooseDeviceForPairing(const std::string& device_id) OVERRIDE; 65 virtual void ChooseDeviceForPairing(const std::string& device_id) OVERRIDE;
66 virtual void RepeatDiscovery() OVERRIDE; 66 virtual void RepeatDiscovery() OVERRIDE;
67 virtual std::string GetConfirmationCode() OVERRIDE; 67 virtual std::string GetConfirmationCode() OVERRIDE;
68 virtual void SetConfirmationCodeIsCorrect(bool correct) OVERRIDE; 68 virtual void SetConfirmationCodeIsCorrect(bool correct) OVERRIDE;
69 virtual void OnAuthenticationDone( 69 virtual void SetHostConfiguration(
70 const chromeos::UserContext& user_context, 70 bool accepted_eula,
71 content::BrowserContext* browser_context) OVERRIDE; 71 const std::string& lang,
72 const std::string& timezone,
73 bool send_reports,
74 const std::string& keyboard_layout) OVERRIDE;
75 virtual void OnAuthenticationDone(const std::string& domain,
76 const std::string& auth_token) OVERRIDE;
72 virtual void StartSession() OVERRIDE; 77 virtual void StartSession() OVERRIDE;
73 78
74 // ProtoDecoder::Observer: 79 // ProtoDecoder::Observer:
75 virtual void OnHostStatusMessage( 80 virtual void OnHostStatusMessage(
76 const pairing_api::HostStatus& message) OVERRIDE; 81 const pairing_api::HostStatus& message) OVERRIDE;
77 virtual void OnConfigureHostMessage( 82 virtual void OnConfigureHostMessage(
78 const pairing_api::ConfigureHost& message) OVERRIDE; 83 const pairing_api::ConfigureHost& message) OVERRIDE;
79 virtual void OnPairDevicesMessage( 84 virtual void OnPairDevicesMessage(
80 const pairing_api::PairDevices& message) OVERRIDE; 85 const pairing_api::PairDevices& message) OVERRIDE;
81 virtual void OnCompleteSetupMessage( 86 virtual void OnCompleteSetupMessage(
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 base::ThreadChecker thread_checker_; 121 base::ThreadChecker thread_checker_;
117 ObserverList<ControllerPairingController::Observer> observers_; 122 ObserverList<ControllerPairingController::Observer> observers_;
118 base::WeakPtrFactory<BluetoothControllerPairingController> ptr_factory_; 123 base::WeakPtrFactory<BluetoothControllerPairingController> ptr_factory_;
119 124
120 DISALLOW_COPY_AND_ASSIGN(BluetoothControllerPairingController); 125 DISALLOW_COPY_AND_ASSIGN(BluetoothControllerPairingController);
121 }; 126 };
122 127
123 } // namespace pairing_chromeos 128 } // namespace pairing_chromeos
124 129
125 #endif // CHROMEOS_PAIRING_BLUETOOTH_CONTROLLER_PAIRING_FLOW_H_ 130 #endif // CHROMEOS_PAIRING_BLUETOOTH_CONTROLLER_PAIRING_FLOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698