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

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

Issue 1521113002: DevTools: Initial implementation of slow CPU emulation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 4 landing Created 5 years 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CPU_THROTTLER_H_
6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CPU_THROTTLER_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "content/common/content_export.h"
10
11 namespace content {
12
13 class CPUThrottlingThread;
14
15 class CONTENT_EXPORT DevToolsCPUThrottler final {
16 public:
17 DevToolsCPUThrottler();
18 ~DevToolsCPUThrottler();
19
20 void SetThrottlingRate(double rate);
21
22 private:
23 scoped_ptr<CPUThrottlingThread> throttling_thread_;
24
25 DISALLOW_COPY_AND_ASSIGN(DevToolsCPUThrottler);
26 };
27
28 } // namespace content
29
30 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CPU_THROTTLER_H_
OLDNEW
« no previous file with comments | « content/renderer/devtools/devtools_agent.cc ('k') | content/renderer/devtools/devtools_cpu_throttler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698