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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/traced_frame_tree.h
diff --git a/content/browser/frame_host/traced_frame_tree.h b/content/browser/frame_host/traced_frame_tree.h
new file mode 100644
index 0000000000000000000000000000000000000000..0a3d908eda88cc36cba0fa0c503d049055e7855d
--- /dev/null
+++ b/content/browser/frame_host/traced_frame_tree.h
@@ -0,0 +1,30 @@
+// Copyright 2015 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/trace_event/trace_event_impl.h"
+#include "base/values.h"
+#include "content/common/content_export.h"
+#include "url/gurl.h"
+
+namespace content {
+
+class FrameTree;
+
+class CONTENT_EXPORT TracedFrameTree :
clamy 2015/10/12 09:31:06 It would also be nice to have a comment to explain
benjhayden 2015/10/13 00:22:21 Done.
+ public base::trace_event::ConvertableToTraceFormat {
+ public:
+ static scoped_refptr<TracedFrameTree> Create(const FrameTree& tree);
+
+ void AppendAsTraceFormat(std::string* out) const override;
+
+ private:
+ explicit TracedFrameTree(const FrameTree& tree);
+ ~TracedFrameTree() override;
+
+ scoped_ptr<base::DictionaryValue> value_;
+
+ DISALLOW_COPY_AND_ASSIGN(TracedFrameTree);
+};
+
+}
clamy 2015/10/12 09:31:06 Add "// content" after the { (see example for an u
benjhayden 2015/10/13 00:22:21 Done.

Powered by Google App Engine
This is Rietveld 408576698