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

Side by Side Diff: device/bluetooth/bluetooth_adapter_chromeos.h

Issue 184953002: Migrate Chrome OS Bluetooth UI to the new discovery API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 10
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // BluetoothAdapter override. 187 // BluetoothAdapter override.
188 virtual void AddDiscoverySession( 188 virtual void AddDiscoverySession(
189 const base::Closure& callback, 189 const base::Closure& callback,
190 const ErrorCallback& error_callback) OVERRIDE; 190 const ErrorCallback& error_callback) OVERRIDE;
191 virtual void RemoveDiscoverySession( 191 virtual void RemoveDiscoverySession(
192 const base::Closure& callback, 192 const base::Closure& callback,
193 const ErrorCallback& error_callback) OVERRIDE; 193 const ErrorCallback& error_callback) OVERRIDE;
194 194
195 // Called by dbus:: on completion of the D-Bus method call to start discovery. 195 // Called by dbus:: on completion of the D-Bus method call to start discovery.
196 void OnStartDiscovery(const base::Closure& callback); 196 void OnStartDiscovery(const base::Closure& callback);
197 void OnStartDiscoveryError(const ErrorCallback& error_callback, 197 void OnStartDiscoveryError(const base::Closure& callback,
198 const ErrorCallback& error_callback,
198 const std::string& error_name, 199 const std::string& error_name,
199 const std::string& error_message); 200 const std::string& error_message);
200 201
201 // Called by dbus:: on completion of the D-Bus method call to stop discovery. 202 // Called by dbus:: on completion of the D-Bus method call to stop discovery.
202 void OnStopDiscovery(const base::Closure& callback); 203 void OnStopDiscovery(const base::Closure& callback);
203 void OnStopDiscoveryError(const ErrorCallback& error_callback, 204 void OnStopDiscoveryError(const ErrorCallback& error_callback,
204 const std::string& error_name, 205 const std::string& error_name,
205 const std::string& error_message); 206 const std::string& error_message);
206 207
207 // Processes the queued discovery requests. For each DiscoveryCallbackPair in 208 // Processes the queued discovery requests. For each DiscoveryCallbackPair in
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // Note: This should remain the last member so it'll be destroyed and 241 // Note: This should remain the last member so it'll be destroyed and
241 // invalidate its weak pointers before any other members are destroyed. 242 // invalidate its weak pointers before any other members are destroyed.
242 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; 243 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_;
243 244
244 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); 245 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS);
245 }; 246 };
246 247
247 } // namespace chromeos 248 } // namespace chromeos
248 249
249 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ 250 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698