OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "modules/serviceworkers/ServiceWorkerClient.h" | 5 #include "modules/serviceworkers/ServiceWorkerClient.h" |
6 #include "modules/serviceworkers/ServiceWorkerWindowClient.h" | 6 #include "modules/serviceworkers/ServiceWorkerWindowClient.h" |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include "bindings/core/v8/CallbackPromiseAdapter.h" | 9 #include "bindings/core/v8/CallbackPromiseAdapter.h" |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
11 #include "bindings/core/v8/SerializedScriptValue.h" | 11 #include "bindings/core/v8/serialization/SerializedScriptValue.h" |
12 #include "core/dom/ExecutionContext.h" | 12 #include "core/dom/ExecutionContext.h" |
13 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" | 13 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" |
14 #include "platform/bindings/ScriptState.h" | 14 #include "platform/bindings/ScriptState.h" |
15 #include "platform/wtf/RefPtr.h" | 15 #include "platform/wtf/RefPtr.h" |
16 #include "public/platform/WebString.h" | 16 #include "public/platform/WebString.h" |
17 | 17 |
18 namespace blink { | 18 namespace blink { |
19 | 19 |
20 ServiceWorkerClient* ServiceWorkerClient::Take( | 20 ServiceWorkerClient* ServiceWorkerClient::Take( |
21 ScriptPromiseResolver*, | 21 ScriptPromiseResolver*, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 return; | 77 return; |
78 | 78 |
79 WebString message_string = message->ToWireString(); | 79 WebString message_string = message->ToWireString(); |
80 WebMessagePortChannelArray web_channels = | 80 WebMessagePortChannelArray web_channels = |
81 MessagePort::ToWebMessagePortChannelArray(std::move(channels)); | 81 MessagePort::ToWebMessagePortChannelArray(std::move(channels)); |
82 ServiceWorkerGlobalScopeClient::From(context)->PostMessageToClient( | 82 ServiceWorkerGlobalScopeClient::From(context)->PostMessageToClient( |
83 uuid_, message_string, std::move(web_channels)); | 83 uuid_, message_string, std::move(web_channels)); |
84 } | 84 } |
85 | 85 |
86 } // namespace blink | 86 } // namespace blink |
OLD | NEW |