Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h |
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h |
index 91d839fe67e4db8be531cf62cae607c5de9c154d..8040ac1ad47809a61e58329c7f8e9e44f92bf8af 100644 |
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h |
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h |
@@ -41,6 +41,7 @@ |
#include "public/platform/modules/serviceworker/WebServiceWorkerSkipWaitingCallbacks.h" |
#include "wtf/Forward.h" |
#include "wtf/Noncopyable.h" |
+#include <memory> |
namespace blink { |
@@ -79,8 +80,8 @@ public: |
virtual void didHandleNotificationCloseEvent(int eventID, WebServiceWorkerEventResult) = 0; |
virtual void didHandlePushEvent(int pushEventID, WebServiceWorkerEventResult) = 0; |
virtual void didHandleSyncEvent(int syncEventID, WebServiceWorkerEventResult) = 0; |
- virtual void postMessageToClient(const WebString& clientUUID, const WebString& message, PassOwnPtr<WebMessagePortChannelArray>) = 0; |
- virtual void postMessageToCrossOriginClient(const WebCrossOriginServiceWorkerClient&, const WebString& message, PassOwnPtr<WebMessagePortChannelArray>) = 0; |
+ virtual void postMessageToClient(const WebString& clientUUID, const WebString& message, std::unique_ptr<WebMessagePortChannelArray>) = 0; |
+ virtual void postMessageToCrossOriginClient(const WebCrossOriginServiceWorkerClient&, const WebString& message, std::unique_ptr<WebMessagePortChannelArray>) = 0; |
virtual void skipWaiting(WebServiceWorkerSkipWaitingCallbacks*) = 0; |
virtual void claim(WebServiceWorkerClientsClaimCallbacks*) = 0; |
virtual void focus(const WebString& clientUUID, WebServiceWorkerClientCallbacks*) = 0; |