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

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

Issue 1519883003: 1) Add basic configuration (network connection, language, keyboard layout, timezone) setup page. 2)… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the i18n-content HTML format in the html files Created 5 years 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 COMPONENTS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_ 5 #ifndef COMPONENTS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_
6 #define COMPONENTS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_ 6 #define COMPONENTS_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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 const std::string& error_message); 62 const std::string& error_message);
63 63
64 // HostPairingController: 64 // HostPairingController:
65 void AddObserver(Observer* observer) override; 65 void AddObserver(Observer* observer) override;
66 void RemoveObserver(Observer* observer) override; 66 void RemoveObserver(Observer* observer) override;
67 Stage GetCurrentStage() override; 67 Stage GetCurrentStage() override;
68 void StartPairing() override; 68 void StartPairing() override;
69 std::string GetDeviceName() override; 69 std::string GetDeviceName() override;
70 std::string GetConfirmationCode() override; 70 std::string GetConfirmationCode() override;
71 std::string GetEnrollmentDomain() override; 71 std::string GetEnrollmentDomain() override;
72 void OnNetworkConnectivityChanged(Connectivity connectivity_status) override;
72 void OnUpdateStatusChanged(UpdateStatus update_status) override; 73 void OnUpdateStatusChanged(UpdateStatus update_status) override;
73 void OnEnrollmentStatusChanged(EnrollmentStatus enrollment_status) override; 74 void OnEnrollmentStatusChanged(EnrollmentStatus enrollment_status) override;
74 void SetPermanentId(const std::string& permanent_id) override; 75 void SetPermanentId(const std::string& permanent_id) override;
75 76
76 // ProtoDecoder::Observer: 77 // ProtoDecoder::Observer:
77 void OnHostStatusMessage(const pairing_api::HostStatus& message) override; 78 void OnHostStatusMessage(const pairing_api::HostStatus& message) override;
78 void OnConfigureHostMessage( 79 void OnConfigureHostMessage(
79 const pairing_api::ConfigureHost& message) override; 80 const pairing_api::ConfigureHost& message) override;
80 void OnPairDevicesMessage(const pairing_api::PairDevices& message) override; 81 void OnPairDevicesMessage(const pairing_api::PairDevices& message) override;
81 void OnCompleteSetupMessage( 82 void OnCompleteSetupMessage(
(...skipping 12 matching lines...) Expand all
94 const std::string& pincode) override; 95 const std::string& pincode) override;
95 void DisplayPasskey(device::BluetoothDevice* device, uint32 passkey) override; 96 void DisplayPasskey(device::BluetoothDevice* device, uint32 passkey) override;
96 void KeysEntered(device::BluetoothDevice* device, uint32 entered) override; 97 void KeysEntered(device::BluetoothDevice* device, uint32 entered) override;
97 void ConfirmPasskey(device::BluetoothDevice* device, uint32 passkey) override; 98 void ConfirmPasskey(device::BluetoothDevice* device, uint32 passkey) override;
98 void AuthorizePairing(device::BluetoothDevice* device) override; 99 void AuthorizePairing(device::BluetoothDevice* device) override;
99 100
100 Stage current_stage_; 101 Stage current_stage_;
101 std::string device_name_; 102 std::string device_name_;
102 std::string confirmation_code_; 103 std::string confirmation_code_;
103 std::string enrollment_domain_; 104 std::string enrollment_domain_;
105 Connectivity connectivity_status_;
104 UpdateStatus update_status_; 106 UpdateStatus update_status_;
105 EnrollmentStatus enrollment_status_; 107 EnrollmentStatus enrollment_status_;
106 std::string permanent_id_; 108 std::string permanent_id_;
107 109
108 scoped_refptr<device::BluetoothAdapter> adapter_; 110 scoped_refptr<device::BluetoothAdapter> adapter_;
109 scoped_refptr<device::BluetoothSocket> service_socket_; 111 scoped_refptr<device::BluetoothSocket> service_socket_;
110 scoped_refptr<device::BluetoothSocket> controller_socket_; 112 scoped_refptr<device::BluetoothSocket> controller_socket_;
111 scoped_ptr<ProtoDecoder> proto_decoder_; 113 scoped_ptr<ProtoDecoder> proto_decoder_;
112 114
113 base::ThreadChecker thread_checker_; 115 base::ThreadChecker thread_checker_;
114 base::ObserverList<Observer> observers_; 116 base::ObserverList<Observer> observers_;
115 base::WeakPtrFactory<BluetoothHostPairingController> ptr_factory_; 117 base::WeakPtrFactory<BluetoothHostPairingController> ptr_factory_;
116 118
117 DISALLOW_COPY_AND_ASSIGN(BluetoothHostPairingController); 119 DISALLOW_COPY_AND_ASSIGN(BluetoothHostPairingController);
118 }; 120 };
119 121
120 } // namespace pairing_chromeos 122 } // namespace pairing_chromeos
121 123
122 #endif // COMPONENTS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_ 124 #endif // COMPONENTS_PAIRING_BLUETOOTH_HOST_PAIRING_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698