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

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, 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/modules/performance/WorkerPerformance.h
diff --git a/Source/modules/performance/WorkerPerformance.h b/Source/modules/performance/WorkerPerformance.h
index b51870b044f09f24137254a1a6faffe27ed24017..f0ce518de90b085067119337e0ca939b8d19eed2 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 RefCountedWillBeGarbageCollectedFinalized<WorkerPerformance>, public ScriptWrappable {
DECLARE_GC_INFO;
@@ -49,6 +50,7 @@ public:
~WorkerPerformance();
double now(ExecutionContext*) const;
+ PassRefPtrWillBeRawPtr<MemoryInfo> memory() const;
void trace(Visitor*) { }

Powered by Google App Engine
This is Rietveld 408576698