OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_BLAME_CONTEXT_H_ |
| 6 #define CONTENT_RENDERER_RENDER_FRAME_BLAME_CONTEXT_H_ |
| 7 |
| 8 #include "base/trace_event/blame_context.h" |
| 9 #include "content/public/renderer/render_frame_observer.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 class RenderFrameImpl; |
| 14 class RenderThreadBlameContext; |
| 15 |
| 16 // A blame context which represents a single render frame. |
| 17 class RenderFrameBlameContext : public base::trace_event::BlameContext, |
| 18 public RenderFrameObserver { |
| 19 public: |
| 20 RenderFrameBlameContext(RenderFrameImpl* frame); |
| 21 ~RenderFrameBlameContext() override; |
| 22 |
| 23 // RenderFrameObserver implementation: |
| 24 void DidCreateNewDocument() override; |
| 25 |
| 26 protected: |
| 27 void AsValueInto(base::trace_event::TracedValue* state) override; |
| 28 |
| 29 private: |
| 30 std::string url_; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(RenderFrameBlameContext); |
| 33 }; |
| 34 |
| 35 } // namespace content |
| 36 |
| 37 #endif // CONTENT_RENDERER_RENDER_FRAME_BLAME_CONTEXT_H_ |
OLD | NEW |