blob: 082562ddb880f2ed09bafca48af47486b738c616 [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// 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_MODULES_ML_NAVIGATOR_ML_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_ML_NAVIGATOR_ML_H_
#include "third_party/blink/renderer/core/frame/navigator.h"
#include "third_party/blink/renderer/modules/ml/ml.h"
#include "third_party/blink/renderer/platform/heap/member.h"
#include "third_party/blink/renderer/platform/supplementable.h"
namespace blink {
class NavigatorML : public GarbageCollected<NavigatorML>,
public Supplement<Navigator> {
public:
static const char kSupplementName[];
static ML* ml(Navigator& navigator);
explicit NavigatorML(Navigator& navigator);
NavigatorML(const NavigatorML&) = delete;
NavigatorML& operator=(const NavigatorML&) = delete;
void Trace(blink::Visitor*) const override;
private:
Member<ML> ml_;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_ML_NAVIGATOR_ML_H_