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

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

Issue 622343002: replace OVERRIDE and FINAL with override and final in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 const std::vector<uint8>& value, 223 const std::vector<uint8>& value,
224 const base::Closure& callback, 224 const base::Closure& callback,
225 const ErrorCallback& error_callback); 225 const ErrorCallback& error_callback);
226 226
227 // Initializes the adapter for testing. Used by unit tests only. 227 // Initializes the adapter for testing. Used by unit tests only.
228 void SetAdapterForTesting(device::BluetoothAdapter* adapter); 228 void SetAdapterForTesting(device::BluetoothAdapter* adapter);
229 229
230 // device::BluetoothAdapter::Observer overrides. 230 // device::BluetoothAdapter::Observer overrides.
231 virtual void GattServiceAdded(device::BluetoothAdapter* adapter, 231 virtual void GattServiceAdded(device::BluetoothAdapter* adapter,
232 device::BluetoothDevice* device, 232 device::BluetoothDevice* device,
233 device::BluetoothGattService* service) OVERRIDE; 233 device::BluetoothGattService* service) override;
234 virtual void GattServiceRemoved( 234 virtual void GattServiceRemoved(
235 device::BluetoothAdapter* adapter, 235 device::BluetoothAdapter* adapter,
236 device::BluetoothDevice* device, 236 device::BluetoothDevice* device,
237 device::BluetoothGattService* service) OVERRIDE; 237 device::BluetoothGattService* service) override;
238 virtual void GattDiscoveryCompleteForService( 238 virtual void GattDiscoveryCompleteForService(
239 device::BluetoothAdapter* adapter, 239 device::BluetoothAdapter* adapter,
240 device::BluetoothGattService* service) OVERRIDE; 240 device::BluetoothGattService* service) override;
241 virtual void GattServiceChanged( 241 virtual void GattServiceChanged(
242 device::BluetoothAdapter* adapter, 242 device::BluetoothAdapter* adapter,
243 device::BluetoothGattService* service) OVERRIDE; 243 device::BluetoothGattService* service) override;
244 virtual void GattCharacteristicAdded( 244 virtual void GattCharacteristicAdded(
245 device::BluetoothAdapter* adapter, 245 device::BluetoothAdapter* adapter,
246 device::BluetoothGattCharacteristic* characteristic) OVERRIDE; 246 device::BluetoothGattCharacteristic* characteristic) override;
247 virtual void GattCharacteristicRemoved( 247 virtual void GattCharacteristicRemoved(
248 device::BluetoothAdapter* adapter, 248 device::BluetoothAdapter* adapter,
249 device::BluetoothGattCharacteristic* characteristic) OVERRIDE; 249 device::BluetoothGattCharacteristic* characteristic) override;
250 virtual void GattDescriptorAdded( 250 virtual void GattDescriptorAdded(
251 device::BluetoothAdapter* adapter, 251 device::BluetoothAdapter* adapter,
252 device::BluetoothGattDescriptor* descriptor) OVERRIDE; 252 device::BluetoothGattDescriptor* descriptor) override;
253 virtual void GattDescriptorRemoved( 253 virtual void GattDescriptorRemoved(
254 device::BluetoothAdapter* adapter, 254 device::BluetoothAdapter* adapter,
255 device::BluetoothGattDescriptor* descriptor) OVERRIDE; 255 device::BluetoothGattDescriptor* descriptor) override;
256 virtual void GattCharacteristicValueChanged( 256 virtual void GattCharacteristicValueChanged(
257 device::BluetoothAdapter* adapter, 257 device::BluetoothAdapter* adapter,
258 device::BluetoothGattCharacteristic* characteristic, 258 device::BluetoothGattCharacteristic* characteristic,
259 const std::vector<uint8>& value) OVERRIDE; 259 const std::vector<uint8>& value) override;
260 virtual void GattDescriptorValueChanged( 260 virtual void GattDescriptorValueChanged(
261 device::BluetoothAdapter* adapter, 261 device::BluetoothAdapter* adapter,
262 device::BluetoothGattDescriptor* descriptor, 262 device::BluetoothGattDescriptor* descriptor,
263 const std::vector<uint8>& value) OVERRIDE; 263 const std::vector<uint8>& value) override;
264 264
265 private: 265 private:
266 // Called by BluetoothAdapterFactory. 266 // Called by BluetoothAdapterFactory.
267 void OnGetAdapter(const base::Closure& callback, 267 void OnGetAdapter(const base::Closure& callback,
268 scoped_refptr<device::BluetoothAdapter> adapter); 268 scoped_refptr<device::BluetoothAdapter> adapter);
269 269
270 // Initializes the identifier for all existing GATT objects and devices. 270 // Initializes the identifier for all existing GATT objects and devices.
271 // Called by OnGetAdapter and SetAdapterForTesting. 271 // Called by OnGetAdapter and SetAdapterForTesting.
272 void InitializeIdentifierMappings(); 272 void InitializeIdentifierMappings();
273 273
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 // Note: This should remain the last member so it'll be destroyed and 412 // Note: This should remain the last member so it'll be destroyed and
413 // invalidate its weak pointers before any other members are destroyed. 413 // invalidate its weak pointers before any other members are destroyed.
414 base::WeakPtrFactory<BluetoothLowEnergyEventRouter> weak_ptr_factory_; 414 base::WeakPtrFactory<BluetoothLowEnergyEventRouter> weak_ptr_factory_;
415 415
416 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyEventRouter); 416 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyEventRouter);
417 }; 417 };
418 418
419 } // namespace extensions 419 } // namespace extensions
420 420
421 #endif // EXTENSIONS_BROWSER_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_EVEN T_ROUTER_H_ 421 #endif // EXTENSIONS_BROWSER_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_EVEN T_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698