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

Unified Diff: chrome/browser/extensions/api/bluetooth/bluetooth_api_pairing_delegate.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/bluetooth_api_pairing_delegate.h
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_api_pairing_delegate.h b/chrome/browser/extensions/api/bluetooth/bluetooth_api_pairing_delegate.h
deleted file mode 100644
index 95791b3b558bd0cc9687fd804e53bfb762888120..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_api_pairing_delegate.h
+++ /dev/null
@@ -1,52 +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_BLUETOOTH_API_PAIRING_DELEGATE_H_
-#define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_PAIRING_DELEGATE_H_
-
-#include <string>
-
-#include "chrome/common/extensions/api/bluetooth_private.h"
-#include "device/bluetooth/bluetooth_device.h"
-
-namespace content {
-class BrowserContext;
-}
-
-namespace extensions {
-
-// A pairing delegate to dispatch incoming Bluetooth pairing events to the API
-// event router.
-class BluetoothApiPairingDelegate
- : public device::BluetoothDevice::PairingDelegate {
- public:
- BluetoothApiPairingDelegate(const std::string& extension_id,
- content::BrowserContext* browser_context);
- virtual ~BluetoothApiPairingDelegate();
-
- // device::PairingDelegate overrides:
- virtual void RequestPinCode(device::BluetoothDevice* device) OVERRIDE;
- virtual void RequestPasskey(device::BluetoothDevice* device) OVERRIDE;
- virtual void DisplayPinCode(device::BluetoothDevice* device,
- const std::string& pincode) OVERRIDE;
- virtual void DisplayPasskey(device::BluetoothDevice* device,
- uint32 passkey) OVERRIDE;
- virtual void KeysEntered(device::BluetoothDevice* device,
- uint32 entered) OVERRIDE;
- virtual void ConfirmPasskey(device::BluetoothDevice* device,
- uint32 passkey) OVERRIDE;
- virtual void AuthorizePairing(device::BluetoothDevice* device) OVERRIDE;
-
- private:
- // Dispatches a pairing event to the extension.
- void DispatchPairingEvent(
- const api::bluetooth_private::PairingEvent& pairing_event);
-
- std::string extension_id_;
- content::BrowserContext* browser_context_;
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_PAIRING_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698