| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 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 #include "url/gurl.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 class FrameTree; |
| 15 class FrameTreeNode; |
| 16 |
| 17 // This is a temporary container used when tracing snapshots of FrameTree |
| 18 // objects. When a snapshot of a FrameTree is taken, a TracedFrameTree is |
| 19 // created and stored by the tracing system until the trace is dumped. |
| 20 class CONTENT_EXPORT TracedFrameTree : |
| 21 public base::trace_event::ConvertableToTraceFormat { |
| 22 public: |
| 23 static scoped_refptr<TracedFrameTree> Create(const FrameTree& tree); |
| 24 |
| 25 void AppendAsTraceFormat(std::string* out) const override; |
| 26 |
| 27 private: |
| 28 explicit TracedFrameTree(scoped_ptr<base::DictionaryValue> value); |
| 29 ~TracedFrameTree() override; |
| 30 |
| 31 scoped_ptr<base::DictionaryValue> value_; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(TracedFrameTree); |
| 34 }; |
| 35 |
| 36 } // content |
| OLD | NEW |