Index: Source/core/frame/NavigatorCPU.cpp |
diff --git a/Source/core/frame/NavigatorCPU.cpp b/Source/core/frame/NavigatorCPU.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a5bee3d1fc7013f55765067bae6267fa940c42a2 |
--- /dev/null |
+++ b/Source/core/frame/NavigatorCPU.cpp |
@@ -0,0 +1,17 @@ |
+// Copyright 2014 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. |
+ |
+#include "config.h" |
+#include "core/frame/NavigatorCPU.h" |
+ |
+#include "public/platform/Platform.h" |
+ |
+namespace WebCore { |
+ |
+unsigned NavigatorCPU::hardwareConcurrency() const |
+{ |
+ return blink::Platform::current()->numberOfProcessors(); |
+} |
+ |
+} // namespace WebCore |