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

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

Issue 111743007: Add the SharedWorker.workerStart property for high resolution timers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Code style compliance Created 6 years, 11 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 539b0e4e4ba7ef17e44a9af7b722f78097ad3389..3f450403f7bc395ae3a0c12f8f9f290adb99208c 100644
--- a/Source/modules/performance/WorkerPerformance.h
+++ b/Source/modules/performance/WorkerPerformance.h
@@ -31,6 +31,7 @@
#ifndef WorkerPerformance_h
#define WorkerPerformance_h
+#include "bindings/v8/ScriptWrappable.h"
#include "core/dom/ContextLifecycleObserver.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
@@ -40,15 +41,15 @@ namespace WebCore {
class ExecutionContext;
-class WorkerPerformance : public RefCounted<WorkerPerformance>, public ContextLifecycleObserver {
+class WorkerPerformance : public ScriptWrappable, public RefCounted<WorkerPerformance> {
public:
- static PassRefPtr<WorkerPerformance> create(ExecutionContext* context) { return adoptRef(new WorkerPerformance(context)); }
+ static PassRefPtr<WorkerPerformance> create() { return adoptRef(new WorkerPerformance()); }
~WorkerPerformance();
- double now() const;
+ double now(ExecutionContext*) const;
private:
- explicit WorkerPerformance(ExecutionContext*);
+ WorkerPerformance();
};
}
« no previous file with comments | « Source/modules/performance/WorkerGlobalScopePerformance.cpp ('k') | Source/modules/performance/WorkerPerformance.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698