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

Unified Diff: Source/core/workers/WorkerThread.h

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, 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/core/workers/WorkerThread.h
diff --git a/Source/core/workers/WorkerThread.h b/Source/core/workers/WorkerThread.h
index a58d1e7210f8386f38f266b3ee47b6a08cdb1191..72325fca3050b44872b25fb2c56130445e00d5ed 100644
--- a/Source/core/workers/WorkerThread.h
+++ b/Source/core/workers/WorkerThread.h
@@ -46,6 +46,7 @@ namespace WebCore {
class WorkerGlobalScope;
class WorkerLoaderProxy;
class WorkerReportingProxy;
+ class WorkerSettings;
struct WorkerThreadStartupData;
enum WorkerThreadStartMode { DontPauseWorkerGlobalScopeOnStart, PauseWorkerGlobalScopeOnStart };
@@ -73,8 +74,10 @@ namespace WebCore {
NotificationClient* getNotificationClient() { return m_notificationClient; }
void setNotificationClient(NotificationClient* client) { m_notificationClient = client; }
+ WorkerSettings* settings() { return m_settings.get(); }
+
protected:
- WorkerThread(WorkerLoaderProxy&, WorkerReportingProxy&, PassOwnPtr<WorkerThreadStartupData>);
+ WorkerThread(WorkerLoaderProxy&, WorkerReportingProxy&, PassOwnPtr<WorkerSettings>, PassOwnPtr<WorkerThreadStartupData>);
// Factory method for creating a new worker context for the thread.
virtual PassRefPtr<WorkerGlobalScope> createWorkerGlobalScope(PassOwnPtr<WorkerThreadStartupData>) = 0;
@@ -98,6 +101,8 @@ namespace WebCore {
RefPtr<WorkerGlobalScope> m_workerGlobalScope;
Mutex m_threadCreationMutex;
+ OwnPtr<WorkerSettings> m_settings;
kinuko 2014/02/28 05:23:29 Do we need to keep owning WorkerSettings here? Can
Pan 2014/03/03 09:16:52 done, thanks
+
OwnPtr<WorkerThreadStartupData> m_startupData;
NotificationClient* m_notificationClient;

Powered by Google App Engine
This is Rietveld 408576698