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_ |