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

Unified Diff: Source/core/workers/WorkerSettings.cpp

Issue 106353005: Expose performance.memory in workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@Perf-Memory-SharedWorker
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/workers/WorkerSettings.cpp
diff --git a/Source/core/workers/WorkerSettings.cpp b/Source/core/workers/WorkerSettings.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..f83869d40eb9f50c7fac4133cecc469596e9ffb7
--- /dev/null
+++ b/Source/core/workers/WorkerSettings.cpp
@@ -0,0 +1,21 @@
+// 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/workers/WorkerSettings.h"
+
+#include "core/frame/Settings.h"
+
+namespace WebCore {
+
+WorkerSettings::WorkerSettings(Settings* settings)
+ : m_memoryInfoEnabled(false)
+{
+ if (!settings)
+ return;
+
+ m_memoryInfoEnabled = settings->memoryInfoEnabled();
+}
+
+} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698