blob: e14e6d6a54930a94a95a4ba9ce24afe8e91c3f96 [file] [log] [blame]
// Copyright 2015 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 NavigatorPermissions_h
#define NavigatorPermissions_h
#include "core/frame/Navigator.h"
#include "platform/Supplementable.h"
#include "platform/heap/Handle.h"
namespace blink {
class Navigator;
class Permissions;
class NavigatorPermissions final
: public GarbageCollected<NavigatorPermissions>,
public Supplement<Navigator> {
USING_GARBAGE_COLLECTED_MIXIN(NavigatorPermissions);
public:
static const char kSupplementName[];
static NavigatorPermissions& From(Navigator&);
static Permissions* permissions(Navigator&);
void Trace(blink::Visitor*) override;
private:
NavigatorPermissions();
Member<Permissions> permissions_;
};
} // namespace blink
#endif // NavigatorPermissions_h