blob: 79c2a80e9112878fe60c47f28f5a8b0e74e7daa0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// 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.
#include "base/macros.h"
#include "base/memory/scoped_vector.h"
#include "base/trace_event/trace_event_impl.h"
#include "base/values.h"
#include "content/common/content_export.h"
namespace content {
class FrameTree;
class FrameTreeNode;
// This is a temporary container used when tracing snapshots of FrameTree
// objects. When a snapshot of a FrameTree is taken, a TracedFrameTreeNode is
// created and stored by the tracing system until the trace is dumped.
class CONTENT_EXPORT TracedFrameTreeNode :
public base::trace_event::ConvertableToTraceFormat {
public:
TracedFrameTreeNode(const FrameTreeNode& node);
void AppendAsTraceFormat(std::string* out) const override;
private:
~TracedFrameTreeNode() override;
int parent_node_id_;
std::string url_;
int process_id_;
int routing_id_;
DISALLOW_COPY_AND_ASSIGN(TracedFrameTreeNode);
};
} // content
|