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

Unified Diff: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.h

Issue 420663003: Extensions: Move bluetooth APIs to extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android, gn Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.h
diff --git a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.h b/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.h
deleted file mode 100644
index 8cac5d98703975907fad3a182ca9b190c4afb084..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_NOTIFY_SESSION_H_
-#define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_NOTIFY_SESSION_H_
-
-#include <string>
-
-#include "base/memory/scoped_ptr.h"
-#include "device/bluetooth/bluetooth_gatt_notify_session.h"
-#include "extensions/browser/api/api_resource.h"
-#include "extensions/browser/api/api_resource_manager.h"
-
-namespace extensions {
-
-// An ApiResource wrapper for a device::BluetoothGattNotifySession
-class BluetoothLowEnergyNotifySession : public ApiResource {
- public:
- explicit BluetoothLowEnergyNotifySession(
- bool persistent,
- const std::string& owner_extension_id,
- scoped_ptr<device::BluetoothGattNotifySession> session);
- virtual ~BluetoothLowEnergyNotifySession();
-
- // Returns a pointer to the underlying session object.
- device::BluetoothGattNotifySession* GetSession() const;
-
- // ApiResource override.
- virtual bool IsPersistent() const OVERRIDE;
-
- // This resource should be managed on the UI thread.
- static const content::BrowserThread::ID kThreadId =
- content::BrowserThread::UI;
-
- private:
- friend class ApiResourceManager<BluetoothLowEnergyNotifySession>;
- static const char* service_name() {
- return "BluetoothLowEnergyNotifySessionManager";
- }
-
- // True, if this resource should be persistent across suspends.
- bool persistent_;
-
- // The session is owned by this instance and will automatically stop when
- // deleted.
- scoped_ptr<device::BluetoothGattNotifySession> session_;
-
- DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyNotifySession);
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_LOW_ENERGY_BLUETOOTH_LOW_ENERGY_NOTIFY_SESSION_H_

Powered by Google App Engine
This is Rietveld 408576698