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