0
Files
src/content/renderer/frame_blame_context.h
Peter Boström 828b902994 Replace DISALLOW_COPY_AND_ASSIGN in content/
This replaces DISALLOW_COPY_AND_ASSIGN with explicit constructor deletes
where a local script is able to detect its insertion place (~Foo() is
public => insert before this line).

This is incomplete as not all classes have a public ~Foo() declared, so
not all DISALLOW_COPY_AND_ASSIGN occurrences are replaced.

IWYU cleanup is left as a separate pass that is easier when these macros
go away.

Bug: 1010217
Change-Id: Iea478401b7580682c7b9f195f7af9cbbdb6ce315
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3167292
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Peter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#923194}
2021-09-21 02:28:43 +00:00

28 lines
802 B
C++

// Copyright 2016 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 CONTENT_RENDERER_FRAME_BLAME_CONTEXT_H_
#define CONTENT_RENDERER_FRAME_BLAME_CONTEXT_H_
#include "base/trace_event/blame_context.h"
namespace content {
class RenderFrameImpl;
// A blame context which represents a single render frame.
class FrameBlameContext : public base::trace_event::BlameContext {
public:
FrameBlameContext(RenderFrameImpl* frame, RenderFrameImpl* parent_frame);
FrameBlameContext(const FrameBlameContext&) = delete;
FrameBlameContext& operator=(const FrameBlameContext&) = delete;
~FrameBlameContext() override;
};
} // namespace content
#endif // CONTENT_RENDERER_FRAME_BLAME_CONTEXT_H_