Make USB permissions work in the new permission message system
[chromium-blink-merge.git] / content / browser / devtools / devtools_frame_trace_recorder.h
blob97d133a0fdf54ab9e38dd8bca685dfe91ad8cc93
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 RenderFrameHostImpl;
19 class DevToolsFrameTraceRecorder {
20 public:
21 DevToolsFrameTraceRecorder();
22 ~DevToolsFrameTraceRecorder();
24 void OnSwapCompositorFrame(
25 RenderFrameHostImpl* host,
26 const cc::CompositorFrameMetadata& frame_metadata);
28 void OnSynchronousSwapCompositorFrame(
29 RenderFrameHostImpl* host,
30 const cc::CompositorFrameMetadata& frame_metadata);
32 private:
33 DISALLOW_COPY_AND_ASSIGN(DevToolsFrameTraceRecorder);
34 scoped_ptr<cc::CompositorFrameMetadata> last_metadata_;
37 } // namespace content
39 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRAME_TRACE_RECORDER_H_