cc: Use worker context for one-copy tile initialization.
[chromium-blink-merge.git] / content / browser / devtools / devtools_frame_trace_recorder.h
blob65e826ffef1ad1849fc1f3ac841311b16f96dab4
1 // Copyright (c) 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.
5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRAME_TRACE_RECORDER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRAME_TRACE_RECORDER_H_
8 #include "base/compiler_specific.h"
9 #include "base/memory/weak_ptr.h"
11 namespace cc {
12 class CompositorFrameMetadata;
15 namespace content {
17 class DevToolsFrameTraceRecorderData;
18 class RenderFrameHostImpl;
20 class DevToolsFrameTraceRecorder {
21 public:
22 DevToolsFrameTraceRecorder();
23 ~DevToolsFrameTraceRecorder();
25 void OnSwapCompositorFrame(
26 RenderFrameHostImpl* host,
27 const cc::CompositorFrameMetadata& frame_metadata,
28 bool do_capture);
30 private:
31 scoped_refptr<DevToolsFrameTraceRecorderData> pending_frame_data_;
32 DISALLOW_COPY_AND_ASSIGN(DevToolsFrameTraceRecorder);
35 } // namespace content
37 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRAME_TRACE_RECORDER_H_