Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(769)

Side by Side Diff: content/renderer/devtools/devtools_cpu_throttler.h

Issue 1873783003: Convert //content/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 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_RENDERER_DEVTOOLS_DEVTOOLS_CPU_THROTTLER_H_ 5 #ifndef CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CPU_THROTTLER_H_
6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CPU_THROTTLER_H_ 6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CPU_THROTTLER_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
11 12
12 namespace content { 13 namespace content {
13 14
14 class CPUThrottlingThread; 15 class CPUThrottlingThread;
15 16
16 class CONTENT_EXPORT DevToolsCPUThrottler final { 17 class CONTENT_EXPORT DevToolsCPUThrottler final {
17 public: 18 public:
18 DevToolsCPUThrottler(); 19 DevToolsCPUThrottler();
19 ~DevToolsCPUThrottler(); 20 ~DevToolsCPUThrottler();
20 21
21 void SetThrottlingRate(double rate); 22 void SetThrottlingRate(double rate);
22 23
23 private: 24 private:
24 scoped_ptr<CPUThrottlingThread> throttling_thread_; 25 std::unique_ptr<CPUThrottlingThread> throttling_thread_;
25 26
26 DISALLOW_COPY_AND_ASSIGN(DevToolsCPUThrottler); 27 DISALLOW_COPY_AND_ASSIGN(DevToolsCPUThrottler);
27 }; 28 };
28 29
29 } // namespace content 30 } // namespace content
30 31
31 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CPU_THROTTLER_H_ 32 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CPU_THROTTLER_H_
OLDNEW
« no previous file with comments | « content/renderer/devtools/devtools_client.h ('k') | content/renderer/devtools/render_widget_screen_metrics_emulator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698