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

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 6 years, 7 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/modules/performance/WorkerPerformance.h
diff --git a/Source/modules/performance/WorkerPerformance.h b/Source/modules/performance/WorkerPerformance.h
index 5437473cfa736e7989178f82665c03b0950db207..e7ab2356f0af3490fc33d4f1f1ea1e710ab9ac04 100644
--- a/Source/modules/performance/WorkerPerformance.h
+++ b/Source/modules/performance/WorkerPerformance.h
@@ -41,6 +41,7 @@
namespace WebCore {
class ExecutionContext;
+class MemoryInfo;
class WorkerPerformance : public GarbageCollectedFinalized<WorkerPerformance>, public ScriptWrappable {
public:
@@ -51,6 +52,7 @@ public:
~WorkerPerformance();
double now(ExecutionContext*) const;
+ PassRefPtrWillBeRawPtr<MemoryInfo> memory() const;
void trace(Visitor*) { }

Powered by Google App Engine
This is Rietveld 408576698