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

Side by Side Diff: extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h

Issue 1096393002: API stubs for the BLE advertisement API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 EXTENSIONS_BROWSER_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_EVENT_R OUTER_H_ 5 #ifndef EXTENSIONS_BROWSER_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_EVENT_R OUTER_H_
6 #define EXTENSIONS_BROWSER_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_EVENT_R OUTER_H_ 6 #define EXTENSIONS_BROWSER_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_EVENT_R OUTER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 kStatusErrorHigherSecurity, 63 kStatusErrorHigherSecurity,
64 kStatusErrorInProgress, 64 kStatusErrorInProgress,
65 kStatusErrorInsufficientAuthorization, 65 kStatusErrorInsufficientAuthorization,
66 kStatusErrorInvalidLength, 66 kStatusErrorInvalidLength,
67 kStatusErrorNotConnected, 67 kStatusErrorNotConnected,
68 kStatusErrorNotFound, 68 kStatusErrorNotFound,
69 kStatusErrorNotNotifying, 69 kStatusErrorNotNotifying,
70 kStatusErrorPermissionDenied, 70 kStatusErrorPermissionDenied,
71 kStatusErrorTimeout, 71 kStatusErrorTimeout,
72 kStatusErrorUnsupportedDevice, 72 kStatusErrorUnsupportedDevice,
73 kStatusErrorInvalidArguments,
73 }; 74 };
74 75
75 // Error callback is used by asynchronous methods to report failures. 76 // Error callback is used by asynchronous methods to report failures.
76 typedef base::Callback<void(Status)> ErrorCallback; 77 typedef base::Callback<void(Status)> ErrorCallback;
77 78
78 // Returns true if Bluetooth is supported on the current platform or if the 79 // Returns true if Bluetooth is supported on the current platform or if the
79 // internal |adapter_| instance has been initialized for testing. 80 // internal |adapter_| instance has been initialized for testing.
80 bool IsBluetoothSupported() const; 81 bool IsBluetoothSupported() const;
81 82
82 // Obtains a handle on the BluetoothAdapter and invokes |callback|. Returns 83 // Obtains a handle on the BluetoothAdapter and invokes |callback|. Returns
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 // Note: This should remain the last member so it'll be destroyed and 418 // Note: This should remain the last member so it'll be destroyed and
418 // invalidate its weak pointers before any other members are destroyed. 419 // invalidate its weak pointers before any other members are destroyed.
419 base::WeakPtrFactory<BluetoothLowEnergyEventRouter> weak_ptr_factory_; 420 base::WeakPtrFactory<BluetoothLowEnergyEventRouter> weak_ptr_factory_;
420 421
421 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyEventRouter); 422 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyEventRouter);
422 }; 423 };
423 424
424 } // namespace extensions 425 } // namespace extensions
425 426
426 #endif // EXTENSIONS_BROWSER_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_EVEN T_ROUTER_H_ 427 #endif // EXTENSIONS_BROWSER_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_EVEN T_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698