namespace blink {
-PassRefPtrWillBeRawPtr<ServiceWorkerClient> ServiceWorkerClient::create(unsigned id)
+ServiceWorkerClient* ServiceWorkerClient::create(unsigned id)
{
- return adoptRefWillBeNoop(new ServiceWorkerClient(id));
+ return new ServiceWorkerClient(id);
}
ServiceWorkerClient::ServiceWorkerClient(unsigned id)
: m_id(id)
{
- ScriptWrappable::init(this);
}
-DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ServiceWorkerClient);
-
void ServiceWorkerClient::postMessage(ExecutionContext* context, PassRefPtr<SerializedScriptValue> message, const MessagePortArray* ports, ExceptionState& exceptionState)
{
// Disentangle the port in preparation for sending it to the remote context.