Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / serviceworkers / ServiceWorkerClient.cpp
index 044ca3e..794644b 100644 (file)
 
 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.