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

Unified Diff: content/browser/frame_host/traced_frame_tree_node.h

Issue 1390053002: Trace FrameTreeNode Snapshots (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scoped_ptr Created 4 years, 10 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_node.h
diff --git a/content/browser/frame_host/traced_frame_tree_node.h b/content/browser/frame_host/traced_frame_tree_node.h
new file mode 100644
index 0000000000000000000000000000000000000000..0c992fa48d5544696ab8a643027aa2aa768fb1db
--- /dev/null
+++ b/content/browser/frame_host/traced_frame_tree_node.h
@@ -0,0 +1,36 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
nasko 2016/03/02 00:20:20 It has been an year already : ), 2016.
benjhayden 2016/03/02 18:53:03 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/macros.h"
+#include "base/memory/scoped_vector.h"
+#include "base/trace_event/trace_event_impl.h"
+#include "base/values.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+class FrameTree;
+class FrameTreeNode;
+
+// This is a temporary container used when tracing snapshots of FrameTree
+// objects. When a snapshot of a FrameTree is taken, a TracedFrameTreeNode is
+// created and stored by the tracing system until the trace is dumped.
+class CONTENT_EXPORT TracedFrameTreeNode :
+ public base::trace_event::ConvertableToTraceFormat {
+ public:
+ TracedFrameTreeNode(const FrameTreeNode& node);
+ void AppendAsTraceFormat(std::string* out) const override;
+
+ private:
+ ~TracedFrameTreeNode() override;
+
+ int parentNodeId_;
nasko 2016/03/02 00:20:20 Class members use hacker_case_.
benjhayden 2016/03/02 18:53:03 Done.
+ std::string url_;
+ int processId_;
+ int routingId_;
+
+ DISALLOW_COPY_AND_ASSIGN(TracedFrameTreeNode);
+};
+
+} // content

Powered by Google App Engine
This is Rietveld 408576698