Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: content/browser/frame_host/traced_frame_tree.h

Issue 1390053002: Trace FrameTreeNode Snapshots (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: non-copied FrameTree Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
16 // This is a temporary container used when tracing snapshots of FrameTree
17 // objects. When a snapshot of a FrameTree is taken, a TracedFrameTree is
18 // created and stored by the tracing system until the trace is dumped.
19 class CONTENT_EXPORT TracedFrameTree :
20 public base::trace_event::ConvertableToTraceFormat {
21 public:
22 static scoped_refptr<TracedFrameTree> Create(const FrameTree& tree);
23
24 void AppendAsTraceFormat(std::string* out) const override;
25
26 private:
27 explicit TracedFrameTree(const FrameTree& tree);
28 ~TracedFrameTree() override;
29
30 const FrameTree& tree_;
31
32 DISALLOW_COPY_AND_ASSIGN(TracedFrameTree);
33 };
34
35 } // content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698