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

Side by Side Diff: chromeos/dbus/fake_bluetooth_device_client.h

Issue 15016004: Bluetooth: Parse the bluez.Error.Failed on pairing error. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | chromeos/dbus/fake_bluetooth_device_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 static const char kWeirdDevicePath[]; 124 static const char kWeirdDevicePath[];
125 static const char kWeirdDeviceName[]; 125 static const char kWeirdDeviceName[];
126 static const char kWeirdDeviceAddress[]; 126 static const char kWeirdDeviceAddress[];
127 static const uint32 kWeirdDeviceClass; 127 static const uint32 kWeirdDeviceClass;
128 128
129 static const char kUnconnectableDevicePath[]; 129 static const char kUnconnectableDevicePath[];
130 static const char kUnconnectableDeviceName[]; 130 static const char kUnconnectableDeviceName[];
131 static const char kUnconnectableDeviceAddress[]; 131 static const char kUnconnectableDeviceAddress[];
132 static const uint32 kUnconnectableDeviceClass; 132 static const uint32 kUnconnectableDeviceClass;
133 133
134 static const char kUnpairableDevicePath[];
135 static const char kUnpairableDeviceName[];
136 static const char kUnpairableDeviceAddress[];
137 static const uint32 kUnpairableDeviceClass;
138
134 private: 139 private:
135 // Property callback passed when we create Properties* structures. 140 // Property callback passed when we create Properties* structures.
136 void OnPropertyChanged(const dbus::ObjectPath& object_path, 141 void OnPropertyChanged(const dbus::ObjectPath& object_path,
137 const std::string& property_name); 142 const std::string& property_name);
138 143
139 void DiscoverySimulationTimer(); 144 void DiscoverySimulationTimer();
140 145
141 void CompleteSimulatedPairing( 146 void CompleteSimulatedPairing(
142 const dbus::ObjectPath& object_path, 147 const dbus::ObjectPath& object_path,
143 const base::Closure& callback, 148 const base::Closure& callback,
144 const ErrorCallback& error_callback); 149 const ErrorCallback& error_callback);
145 void TimeoutSimulatedPairing( 150 void TimeoutSimulatedPairing(
146 const dbus::ObjectPath& object_path, 151 const dbus::ObjectPath& object_path,
147 const ErrorCallback& error_callback); 152 const ErrorCallback& error_callback);
148 void CancelSimulatedPairing( 153 void CancelSimulatedPairing(
149 const dbus::ObjectPath& object_path, 154 const dbus::ObjectPath& object_path,
150 const ErrorCallback& error_callback); 155 const ErrorCallback& error_callback);
151 void RejectSimulatedPairing( 156 void RejectSimulatedPairing(
152 const dbus::ObjectPath& object_path, 157 const dbus::ObjectPath& object_path,
153 const ErrorCallback& error_callback); 158 const ErrorCallback& error_callback);
159 void FailSimulatedPairing(
160 const dbus::ObjectPath& object_path,
161 const ErrorCallback& error_callback);
154 void AddInputDeviceIfNeeded( 162 void AddInputDeviceIfNeeded(
155 const dbus::ObjectPath& object_path, 163 const dbus::ObjectPath& object_path,
156 Properties* properties); 164 Properties* properties);
157 165
158 void PinCodeCallback( 166 void PinCodeCallback(
159 const dbus::ObjectPath& object_path, 167 const dbus::ObjectPath& object_path,
160 const base::Closure& callback, 168 const base::Closure& callback,
161 const ErrorCallback& error_callback, 169 const ErrorCallback& error_callback,
162 ExperimentalBluetoothAgentServiceProvider::Delegate::Status status, 170 ExperimentalBluetoothAgentServiceProvider::Delegate::Status status,
163 const std::string& pincode); 171 const std::string& pincode);
(...skipping 23 matching lines...) Expand all
187 std::vector<dbus::ObjectPath> device_list_; 195 std::vector<dbus::ObjectPath> device_list_;
188 196
189 int simulation_interval_ms_; 197 int simulation_interval_ms_;
190 uint32_t discovery_simulation_step_; 198 uint32_t discovery_simulation_step_;
191 bool pairing_cancelled_; 199 bool pairing_cancelled_;
192 }; 200 };
193 201
194 } // namespace chromeos 202 } // namespace chromeos
195 203
196 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ 204 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/dbus/fake_bluetooth_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698