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

Unified Diff: Source/modules/performance/WorkerPerformance.h

Issue 106353005: Expose performance.memory in workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@Perf-Memory-SharedWorker
Patch Set: Created 7 years 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/modules/performance/WorkerPerformance.h
diff --git a/Source/modules/performance/WorkerPerformance.h b/Source/modules/performance/WorkerPerformance.h
index 539b0e4e4ba7ef17e44a9af7b722f78097ad3389..7828f72696710eb1b74de7c552cfb05b24a89472 100644
--- a/Source/modules/performance/WorkerPerformance.h
+++ b/Source/modules/performance/WorkerPerformance.h
@@ -39,6 +39,7 @@
namespace WebCore {
class ExecutionContext;
+class MemoryInfo;
class WorkerPerformance : public RefCounted<WorkerPerformance>, public ContextLifecycleObserver {
public:
@@ -46,6 +47,7 @@ public:
~WorkerPerformance();
double now() const;
+ PassRefPtr<MemoryInfo> memory() const;
private:
explicit WorkerPerformance(ExecutionContext*);

Powered by Google App Engine
This is Rietveld 408576698