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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.h

Issue 2668753006: Special-case LocalDOMWindow for same-origin access in bindings. (Closed)
Patch Set: Rebase and address comments. Created 3 years, 10 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: third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.h
diff --git a/third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.h b/third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.h
index 48fcea23e226f8b627a7e9ab1c1f3a6a83cff991..cd6e2beb6b9eab6a309d0f3d995177db72a841cc 100644
--- a/third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.h
+++ b/third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.h
@@ -6,17 +6,14 @@
#define WindowAnimationWorklet_h
#include "core/dom/ContextLifecycleObserver.h"
-#include "core/frame/LocalDOMWindow.h"
#include "modules/ModulesExport.h"
+#include "modules/compositorworker/AnimationWorklet.h"
#include "platform/Supplementable.h"
#include "platform/heap/Handle.h"
namespace blink {
-class AnimationWorklet;
-class DOMWindow;
class LocalDOMWindow;
-class Worklet;
class MODULES_EXPORT WindowAnimationWorklet final
: public GarbageCollected<WindowAnimationWorklet>,
@@ -25,15 +22,15 @@ class MODULES_EXPORT WindowAnimationWorklet final
USING_GARBAGE_COLLECTED_MIXIN(WindowAnimationWorklet);
public:
- static WindowAnimationWorklet& from(LocalDOMWindow&);
- static Worklet* animationWorklet(DOMWindow&);
- AnimationWorklet* animationWorklet(LocalDOMWindow&);
+ static AnimationWorklet* animationWorklet(LocalDOMWindow&);
void contextDestroyed(ExecutionContext*) override;
DECLARE_TRACE();
private:
+ static WindowAnimationWorklet& from(LocalDOMWindow&);
+
explicit WindowAnimationWorklet(LocalDOMWindow&);
static const char* supplementName();

Powered by Google App Engine
This is Rietveld 408576698