OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 int paymentRequestEventID, | 152 int paymentRequestEventID, |
153 WebServiceWorkerEventResult result, | 153 WebServiceWorkerEventResult result, |
154 double eventDispatchTime) { | 154 double eventDispatchTime) { |
155 m_client.didHandlePaymentRequestEvent(paymentRequestEventID, result, | 155 m_client.didHandlePaymentRequestEvent(paymentRequestEventID, result, |
156 eventDispatchTime); | 156 eventDispatchTime); |
157 } | 157 } |
158 | 158 |
159 void ServiceWorkerGlobalScopeClientImpl::postMessageToClient( | 159 void ServiceWorkerGlobalScopeClientImpl::postMessageToClient( |
160 const WebString& clientUUID, | 160 const WebString& clientUUID, |
161 const WebString& message, | 161 const WebString& message, |
162 std::unique_ptr<WebMessagePortChannelArray> webChannels) { | 162 WebMessagePortChannelArray webChannels) { |
163 m_client.postMessageToClient(clientUUID, message, webChannels.release()); | 163 m_client.postMessageToClient(clientUUID, message, std::move(webChannels)); |
164 } | 164 } |
165 | 165 |
166 void ServiceWorkerGlobalScopeClientImpl::skipWaiting( | 166 void ServiceWorkerGlobalScopeClientImpl::skipWaiting( |
167 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks> callbacks) { | 167 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks> callbacks) { |
168 m_client.skipWaiting(std::move(callbacks)); | 168 m_client.skipWaiting(std::move(callbacks)); |
169 } | 169 } |
170 | 170 |
171 void ServiceWorkerGlobalScopeClientImpl::claim( | 171 void ServiceWorkerGlobalScopeClientImpl::claim( |
172 std::unique_ptr<WebServiceWorkerClientsClaimCallbacks> callbacks) { | 172 std::unique_ptr<WebServiceWorkerClientsClaimCallbacks> callbacks) { |
173 m_client.claim(std::move(callbacks)); | 173 m_client.claim(std::move(callbacks)); |
(...skipping 16 matching lines...) Expand all Loading... |
190 const WebVector<WebURL>& subScopes, | 190 const WebVector<WebURL>& subScopes, |
191 const WebVector<WebSecurityOrigin>& origins) { | 191 const WebVector<WebSecurityOrigin>& origins) { |
192 m_client.registerForeignFetchScopes(subScopes, origins); | 192 m_client.registerForeignFetchScopes(subScopes, origins); |
193 } | 193 } |
194 | 194 |
195 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( | 195 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( |
196 WebServiceWorkerContextClient& client) | 196 WebServiceWorkerContextClient& client) |
197 : m_client(client) {} | 197 : m_client(client) {} |
198 | 198 |
199 } // namespace blink | 199 } // namespace blink |
OLD | NEW |