| OLD | NEW |
| 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 #include "chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energ
y_notify_session.h" | 5 #include "extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_notif
y_session.h" |
| 6 | 6 |
| 7 namespace extensions { | 7 namespace extensions { |
| 8 | 8 |
| 9 static base::LazyInstance<BrowserContextKeyedAPIFactory< | 9 static base::LazyInstance<BrowserContextKeyedAPIFactory< |
| 10 ApiResourceManager<BluetoothLowEnergyNotifySession> > > g_factory = | 10 ApiResourceManager<BluetoothLowEnergyNotifySession> > > g_factory = |
| 11 LAZY_INSTANCE_INITIALIZER; | 11 LAZY_INSTANCE_INITIALIZER; |
| 12 | 12 |
| 13 template <> | 13 template <> |
| 14 BrowserContextKeyedAPIFactory< | 14 BrowserContextKeyedAPIFactory< |
| 15 ApiResourceManager<BluetoothLowEnergyNotifySession> >* | 15 ApiResourceManager<BluetoothLowEnergyNotifySession> >* |
| (...skipping 16 matching lines...) Expand all Loading... |
| 32 device::BluetoothGattNotifySession* | 32 device::BluetoothGattNotifySession* |
| 33 BluetoothLowEnergyNotifySession::GetSession() const { | 33 BluetoothLowEnergyNotifySession::GetSession() const { |
| 34 return session_.get(); | 34 return session_.get(); |
| 35 } | 35 } |
| 36 | 36 |
| 37 bool BluetoothLowEnergyNotifySession::IsPersistent() const { | 37 bool BluetoothLowEnergyNotifySession::IsPersistent() const { |
| 38 return persistent_; | 38 return persistent_; |
| 39 } | 39 } |
| 40 | 40 |
| 41 } // namespace extensions | 41 } // namespace extensions |
| OLD | NEW |