blob: b2b1e33db0952d4d23645cc30b76872410fb1f8e [file] [log] [blame]
// 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 NavigatorBluetooth_h
#define NavigatorBluetooth_h
#include "core/frame/Navigator.h"
#include "platform/Supplementable.h"
#include "platform/heap/Handle.h"
namespace blink {
class Bluetooth;
class Navigator;
class NavigatorBluetooth final : public GarbageCollected<NavigatorBluetooth>,
public Supplement<Navigator> {
USING_GARBAGE_COLLECTED_MIXIN(NavigatorBluetooth);
public:
// Gets, or creates, NavigatorBluetooth supplement on Navigator.
// See platform/Supplementable.h
static NavigatorBluetooth& From(Navigator&);
static Bluetooth* bluetooth(Navigator&);
// IDL exposed interface:
Bluetooth* bluetooth();
DECLARE_TRACE();
private:
explicit NavigatorBluetooth(Navigator&);
static const char* SupplementName();
Member<Bluetooth> bluetooth_;
};
} // namespace blink
#endif // NavigatorBluetooth_h