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

Unified Diff: Source/web/WebSharedWorkerImpl.h

Issue 106353005: Expose performance.memory in workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@Perf-Memory-SharedWorker
Patch Set: Introduce WorkerSettings Created 6 years, 10 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/web/WebSharedWorkerImpl.h
diff --git a/Source/web/WebSharedWorkerImpl.h b/Source/web/WebSharedWorkerImpl.h
index a13e5d7b2c0a40b78381fa64d1fefce0b6a4b929..213c9ede530b8d7d5ab92f8ee246d2f4aa814999 100644
--- a/Source/web/WebSharedWorkerImpl.h
+++ b/Source/web/WebSharedWorkerImpl.h
@@ -36,6 +36,7 @@
#include "WebContentSecurityPolicy.h"
#include "WebFrameClient.h"
#include "WebSharedWorkerClient.h"
+#include "WebWorkerSettingsImpl.h"
#include "core/dom/ExecutionContext.h"
#include "core/workers/WorkerLoaderProxy.h"
#include "core/workers/WorkerReportingProxy.h"
@@ -105,6 +106,8 @@ public:
virtual void detachDevTools() OVERRIDE;
virtual void dispatchDevToolsMessage(const WebString&) OVERRIDE;
+ virtual WebWorkerSettings* settings() OVERRIDE { return m_settings.get(); }
kinuko 2014/03/04 04:34:35 Unlike WebView case changing this after calling st
Pan 2014/03/06 08:50:56 yes, remove this impl
+
private:
class Loader;
@@ -154,6 +157,8 @@ private:
WebString m_name;
WebString m_contentSecurityPolicy;
WebContentSecurityPolicyType m_policyType;
+
+ OwnPtr<WebWorkerSettingsImpl> m_settings;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698