| // Copyright 2016 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "core/dom/AnimationWorkletProxyClient.h" |
| |
| namespace blink { |
| |
| AnimationWorkletProxyClient* AnimationWorkletProxyClient::From( |
| WorkerClients* clients) { |
| return static_cast<AnimationWorkletProxyClient*>( |
| Supplement<WorkerClients>::From(clients, SupplementName())); |
| } |
| |
| const char* AnimationWorkletProxyClient::SupplementName() { |
| return "AnimationWorkletProxyClient"; |
| } |
| |
| void ProvideAnimationWorkletProxyClientTo(WorkerClients* clients, |
| AnimationWorkletProxyClient* client) { |
| clients->ProvideSupplement(AnimationWorkletProxyClient::SupplementName(), |
| client); |
| } |
| |
| } // namespace blink |