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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/devtools/devtools_cpu_throttler.h
diff --git a/content/renderer/devtools/devtools_cpu_throttler.h b/content/renderer/devtools/devtools_cpu_throttler.h
new file mode 100644
index 0000000000000000000000000000000000000000..34a9e83fe152040f8e136d644939291009a8c39e
--- /dev/null
+++ b/content/renderer/devtools/devtools_cpu_throttler.h
@@ -0,0 +1,30 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CPU_THROTTLER_H_
+#define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CPU_THROTTLER_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+class CPUThrottlingThread;
+
+class CONTENT_EXPORT DevToolsCPUThrottler final {
+ public:
+ DevToolsCPUThrottler();
+ ~DevToolsCPUThrottler();
+
+ void SetThrottlingRate(double rate);
+
+ private:
+ scoped_ptr<CPUThrottlingThread> throttling_thread_;
+
+ DISALLOW_COPY_AND_ASSIGN(DevToolsCPUThrottler);
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CPU_THROTTLER_H_
« 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