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

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

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 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 <cstddef> 8 #include <cstddef>
9 #include <cstdint> 9 #include <cstdint>
10 #include <map> 10 #include <map>
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 const base::Closure& callback, 332 const base::Closure& callback,
333 const Delegate::ErrorCallback& error_callback) override; 333 const Delegate::ErrorCallback& error_callback) override;
334 void OnNotificationsStart( 334 void OnNotificationsStart(
335 const device::BluetoothDevice* device, 335 const device::BluetoothDevice* device,
336 const device::BluetoothLocalGattCharacteristic* characteristic) override; 336 const device::BluetoothLocalGattCharacteristic* characteristic) override;
337 void OnNotificationsStop( 337 void OnNotificationsStop(
338 const device::BluetoothDevice* device, 338 const device::BluetoothDevice* device,
339 const device::BluetoothLocalGattCharacteristic* characteristic) override; 339 const device::BluetoothLocalGattCharacteristic* characteristic) override;
340 340
341 // extensions::ExtensionRegistryObserver overrides: 341 // extensions::ExtensionRegistryObserver overrides:
342 void OnExtensionUnloaded( 342 void OnExtensionUnloaded(content::BrowserContext* browser_context,
343 content::BrowserContext* browser_context, 343 const extensions::Extension* extension,
344 const extensions::Extension* extension, 344 extensions::UnloadedExtensionReason reason) override;
345 extensions::UnloadedExtensionInfo::Reason reason) override;
346 345
347 // Adds a mapping for a local characteristic ID to its service ID 346 // Adds a mapping for a local characteristic ID to its service ID
348 void AddLocalCharacteristic(const std::string& id, 347 void AddLocalCharacteristic(const std::string& id,
349 const std::string& service_id); 348 const std::string& service_id);
350 // Returns a BluetoothGattCharacteristic by its ID |id|. 349 // Returns a BluetoothGattCharacteristic by its ID |id|.
351 // Returns NULL, if the characteristic cannot be found. 350 // Returns NULL, if the characteristic cannot be found.
352 device::BluetoothLocalGattCharacteristic* GetLocalCharacteristic( 351 device::BluetoothLocalGattCharacteristic* GetLocalCharacteristic(
353 const std::string& id) const; 352 const std::string& id) const;
354 353
355 // Adds a mapping for a service_id to the id of the app that owns it. 354 // Adds a mapping for a service_id to the id of the app that owns it.
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 // Note: This should remain the last member so it'll be destroyed and 578 // Note: This should remain the last member so it'll be destroyed and
580 // invalidate its weak pointers before any other members are destroyed. 579 // invalidate its weak pointers before any other members are destroyed.
581 base::WeakPtrFactory<BluetoothLowEnergyEventRouter> weak_ptr_factory_; 580 base::WeakPtrFactory<BluetoothLowEnergyEventRouter> weak_ptr_factory_;
582 581
583 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyEventRouter); 582 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyEventRouter);
584 }; 583 };
585 584
586 } // namespace extensions 585 } // namespace extensions
587 586
588 #endif // EXTENSIONS_BROWSER_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_EVEN T_ROUTER_H_ 587 #endif // EXTENSIONS_BROWSER_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_EVEN T_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698