OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 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 | 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_BROWSER_DEVTOOLS_DEVTOOLS_FRAME_TRACE_RECORDER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRAME_TRACE_RECORDER_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRAME_TRACE_RECORDER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRAME_TRACE_RECORDER_H_ |
7 | 7 |
| 8 #include <memory> |
| 9 |
8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 11 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
12 | 13 |
13 namespace cc { | 14 namespace cc { |
14 class CompositorFrameMetadata; | 15 class CompositorFrameMetadata; |
15 } | 16 } |
16 | 17 |
17 namespace content { | 18 namespace content { |
18 | 19 |
19 class RenderFrameHostImpl; | 20 class RenderFrameHostImpl; |
20 | 21 |
21 class DevToolsFrameTraceRecorder { | 22 class DevToolsFrameTraceRecorder { |
22 public: | 23 public: |
23 DevToolsFrameTraceRecorder(); | 24 DevToolsFrameTraceRecorder(); |
24 ~DevToolsFrameTraceRecorder(); | 25 ~DevToolsFrameTraceRecorder(); |
25 | 26 |
26 void OnSwapCompositorFrame( | 27 void OnSwapCompositorFrame( |
27 RenderFrameHostImpl* host, | 28 RenderFrameHostImpl* host, |
28 const cc::CompositorFrameMetadata& frame_metadata); | 29 const cc::CompositorFrameMetadata& frame_metadata); |
29 | 30 |
30 void OnSynchronousSwapCompositorFrame( | 31 void OnSynchronousSwapCompositorFrame( |
31 RenderFrameHostImpl* host, | 32 RenderFrameHostImpl* host, |
32 const cc::CompositorFrameMetadata& frame_metadata); | 33 const cc::CompositorFrameMetadata& frame_metadata); |
33 | 34 |
34 private: | 35 private: |
35 DISALLOW_COPY_AND_ASSIGN(DevToolsFrameTraceRecorder); | 36 DISALLOW_COPY_AND_ASSIGN(DevToolsFrameTraceRecorder); |
36 scoped_ptr<cc::CompositorFrameMetadata> last_metadata_; | 37 std::unique_ptr<cc::CompositorFrameMetadata> last_metadata_; |
37 }; | 38 }; |
38 | 39 |
39 } // namespace content | 40 } // namespace content |
40 | 41 |
41 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRAME_TRACE_RECORDER_H_ | 42 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_FRAME_TRACE_RECORDER_H_ |
OLD | NEW |