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

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

Issue 16434011: Support performance.now() in workers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 7 years, 6 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/WorkerContext.h
diff --git a/Source/core/workers/WorkerContext.h b/Source/core/workers/WorkerContext.h
index febfca0a14cc791f2af1aa1cc737cf9e8d8bee7f..a015af3204ddc58bff9462b7c22093011469b757 100644
--- a/Source/core/workers/WorkerContext.h
+++ b/Source/core/workers/WorkerContext.h
@@ -135,8 +135,10 @@ namespace WebCore {
virtual const SecurityOrigin* topOrigin() const OVERRIDE { return m_topOrigin.get(); }
+ double timeOrigin() const { return m_timeOrigin; }
+
protected:
- WorkerContext(const KURL&, const String& userAgent, PassOwnPtr<GroupSettings>, WorkerThread*, PassRefPtr<SecurityOrigin> topOrigin);
+ WorkerContext(const KURL&, const String& userAgent, PassOwnPtr<GroupSettings>, WorkerThread*, PassRefPtr<SecurityOrigin> topOrigin, double timeOrigin);
void applyContentSecurityPolicyFromString(const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType);
virtual void logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, PassRefPtr<ScriptCallStack>) OVERRIDE;
@@ -179,6 +181,8 @@ namespace WebCore {
OwnPtr<WorkerEventQueue> m_eventQueue;
RefPtr<SecurityOrigin> m_topOrigin;
+
+ double m_timeOrigin;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698