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

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

Issue 491053004: Expose Web Animations API to Web Workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Exposing the Web Animations API to Web Workers Created 6 years, 4 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/Worker.h
diff --git a/Source/core/workers/Worker.h b/Source/core/workers/Worker.h
index 647fc55407f7b5241b705f72e33ea955e986dc2f..6c77bfffd7321c3e2be2a8ed19c6fb27ef1967bc 100644
--- a/Source/core/workers/Worker.h
+++ b/Source/core/workers/Worker.h
@@ -32,6 +32,7 @@
#include "core/events/EventListener.h"
#include "core/events/EventTarget.h"
#include "core/workers/AbstractWorker.h"
+#include "core/workers/WorkerMessagingProxy.h"
#include "core/workers/WorkerScriptLoaderClient.h"
#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
@@ -53,7 +54,7 @@ public:
virtual const AtomicString& interfaceName() const OVERRIDE;
- void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue> message, const MessagePortArray*, ExceptionState&);
+ void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue > message, const MessagePortArray*, ExceptionState&);
dstockwell 2014/08/29 01:05:44 Revert this whitespace change.
nainar1 2014/08/29 06:01:40 Acknowledged.
void terminate();
@@ -61,8 +62,9 @@ public:
virtual bool hasPendingActivity() const OVERRIDE;
DEFINE_ATTRIBUTE_EVENT_LISTENER(message);
-
virtual void trace(Visitor*) OVERRIDE;
+ void processRAF(double monotonicAnimationStartTime);
+ WorkerGlobalScopeProxy* m_contextProxy; // The proxy outlives the worker to perform thread shutdown.
dstockwell 2014/08/29 01:05:44 why is this public now?
nainar1 2014/08/29 06:01:40 Should have getters and setters associated with th
private:
explicit Worker(ExecutionContext*);
@@ -70,9 +72,8 @@ private:
// WorkerScriptLoaderClient callbacks
virtual void didReceiveResponse(unsigned long identifier, const ResourceResponse&) OVERRIDE;
virtual void notifyFinished() OVERRIDE;
-
+ ExecutionContext* context;
RefPtr<WorkerScriptLoader> m_scriptLoader;
- WorkerGlobalScopeProxy* m_contextProxy; // The proxy outlives the worker to perform thread shutdown.
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698