blob: 229091242b6f7d7a9d63f7b6b137e0d113c7b8ad [file] [log] [blame]
// Copyright 2018 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 THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_NAVIGATOR_USER_ACTIVATION_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_NAVIGATOR_USER_ACTIVATION_H_
#include "third_party/blink/renderer/core/frame/navigator.h"
#include "third_party/blink/renderer/platform/heap/handle.h"
#include "third_party/blink/renderer/platform/supplementable.h"
namespace blink {
class UserActivation;
class CORE_EXPORT NavigatorUserActivation final
: public GarbageCollected<NavigatorUserActivation>,
public Supplement<Navigator> {
USING_GARBAGE_COLLECTED_MIXIN(NavigatorUserActivation);
public:
static const char kSupplementName[];
static UserActivation* userActivation(Navigator& navigator);
UserActivation* userActivation();
explicit NavigatorUserActivation(Navigator&);
void Trace(Visitor*) override;
private:
static NavigatorUserActivation& From(Navigator&);
Member<UserActivation> user_activation_;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_NAVIGATOR_USER_ACTIVATION_H_