| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "base/macros.h" | |
| 6 #include "base/memory/scoped_vector.h" | |
| 7 #include "base/trace_event/trace_event_impl.h" | |
| 8 #include "base/values.h" | |
| 9 #include "content/common/content_export.h" | |
| 10 | |
| 11 namespace content { | |
| 12 | |
| 13 class FrameTree; | |
| 14 class FrameTreeNode; | |
| 15 | |
| 16 // This is a temporary container used when tracing snapshots of FrameTree | |
| 17 // objects. When a snapshot of a FrameTree is taken, a TracedFrameTreeNode is | |
| 18 // created and stored by the tracing system until the trace is dumped. | |
| 19 class CONTENT_EXPORT TracedFrameTreeNode : | |
| 20 public base::trace_event::ConvertableToTraceFormat { | |
| 21 public: | |
| 22 TracedFrameTreeNode(const FrameTreeNode& node); | |
| 23 void AppendAsTraceFormat(std::string* out) const override; | |
| 24 | |
| 25 private: | |
| 26 ~TracedFrameTreeNode() override; | |
| 27 | |
| 28 int parent_node_id_; | |
| 29 std::string url_; | |
| 30 int process_id_; | |
| 31 int routing_id_; | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(TracedFrameTreeNode); | |
| 34 }; | |
| 35 | |
| 36 } // content | |
| OLD | NEW |