| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_FRAME_BLAME_CONTEXT_H_ | 5 #ifndef CONTENT_RENDERER_FRAME_BLAME_CONTEXT_H_ |
| 6 #define CONTENT_RENDERER_FRAME_BLAME_CONTEXT_H_ | 6 #define CONTENT_RENDERER_FRAME_BLAME_CONTEXT_H_ |
| 7 | 7 |
| 8 #include "base/trace_event/blame_context.h" | 8 #include "base/trace_event/blame_context.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 | 11 |
| 12 class RenderFrameImpl; | 12 class RenderFrameImpl; |
| 13 class RenderThreadBlameContext; | 13 class RenderThreadBlameContext; |
| 14 | 14 |
| 15 // A blame context which represents a single render frame. | 15 // A blame context which represents a single render frame. |
| 16 class FrameBlameContext : public base::trace_event::BlameContext { | 16 class FrameBlameContext : public base::trace_event::BlameContext { |
| 17 public: | 17 public: |
| 18 FrameBlameContext(RenderFrameImpl* frame, RenderFrameImpl* parent_frame); | 18 FrameBlameContext(RenderFrameImpl* frame, RenderFrameImpl* parent_frame); |
| 19 ~FrameBlameContext() override; | 19 ~FrameBlameContext() override; |
| 20 | 20 |
| 21 protected: |
| 22 void AsValueInto(base::trace_event::TracedValue* value) override; |
| 23 |
| 24 private: |
| 25 RenderFrameImpl* frame_; |
| 26 |
| 21 DISALLOW_COPY_AND_ASSIGN(FrameBlameContext); | 27 DISALLOW_COPY_AND_ASSIGN(FrameBlameContext); |
| 22 }; | 28 }; |
| 23 | 29 |
| 24 } // namespace content | 30 } // namespace content |
| 25 | 31 |
| 26 #endif // CONTENT_RENDERER_FRAME_BLAME_CONTEXT_H_ | 32 #endif // CONTENT_RENDERER_FRAME_BLAME_CONTEXT_H_ |
| OLD | NEW |