blob: aae81dd6976603d112c465b92a1b384db7185ed6 [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 THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_FRAME_CLIENT_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_FRAME_CLIENT_H_
#include "base/unguessable_token.h"
#include "third_party/blink/public/mojom/frame/lifecycle.mojom-blink-forward.h"
#include "third_party/blink/public/platform/blame_context.h"
#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/platform/heap/handle.h"
namespace blink {
class LocalFrame;
enum class FrameDetachType;
class IntRect;
class CORE_EXPORT FrameClient : public GarbageCollected<FrameClient> {
public:
virtual bool InShadowTree() const = 0;
virtual void Detached(FrameDetachType) = 0;
virtual unsigned BackForwardLength() = 0;
virtual void OnMainFrameIntersectionChanged(
const IntRect& intersection_rect) {}
virtual base::UnguessableToken GetDevToolsFrameToken() const = 0;
virtual ~FrameClient() = default;
virtual void Trace(Visitor* visitor) const {}
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_FRAME_CLIENT_H_