| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 m_client.didHandlePushEvent(pushEventID, result, eventDispatchTime); | 140 m_client.didHandlePushEvent(pushEventID, result, eventDispatchTime); |
| 141 } | 141 } |
| 142 | 142 |
| 143 void ServiceWorkerGlobalScopeClientImpl::didHandleSyncEvent( | 143 void ServiceWorkerGlobalScopeClientImpl::didHandleSyncEvent( |
| 144 int syncEventID, | 144 int syncEventID, |
| 145 WebServiceWorkerEventResult result, | 145 WebServiceWorkerEventResult result, |
| 146 double eventDispatchTime) { | 146 double eventDispatchTime) { |
| 147 m_client.didHandleSyncEvent(syncEventID, result, eventDispatchTime); | 147 m_client.didHandleSyncEvent(syncEventID, result, eventDispatchTime); |
| 148 } | 148 } |
| 149 | 149 |
| 150 void ServiceWorkerGlobalScopeClientImpl::didHandlePaymentRequestEvent( |
| 151 int paymentRequestEventID, |
| 152 WebServiceWorkerEventResult result, |
| 153 double eventDispatchTime) { |
| 154 m_client.didHandlePaymentRequestEvent(paymentRequestEventID, result, |
| 155 eventDispatchTime); |
| 156 } |
| 157 |
| 150 void ServiceWorkerGlobalScopeClientImpl::postMessageToClient( | 158 void ServiceWorkerGlobalScopeClientImpl::postMessageToClient( |
| 151 const WebString& clientUUID, | 159 const WebString& clientUUID, |
| 152 const WebString& message, | 160 const WebString& message, |
| 153 std::unique_ptr<WebMessagePortChannelArray> webChannels) { | 161 std::unique_ptr<WebMessagePortChannelArray> webChannels) { |
| 154 m_client.postMessageToClient(clientUUID, message, webChannels.release()); | 162 m_client.postMessageToClient(clientUUID, message, webChannels.release()); |
| 155 } | 163 } |
| 156 | 164 |
| 157 void ServiceWorkerGlobalScopeClientImpl::postMessageToCrossOriginClient( | 165 void ServiceWorkerGlobalScopeClientImpl::postMessageToCrossOriginClient( |
| 158 const WebCrossOriginServiceWorkerClient& client, | 166 const WebCrossOriginServiceWorkerClient& client, |
| 159 const WebString& message, | 167 const WebString& message, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 189 const WebVector<WebURL>& subScopes, | 197 const WebVector<WebURL>& subScopes, |
| 190 const WebVector<WebSecurityOrigin>& origins) { | 198 const WebVector<WebSecurityOrigin>& origins) { |
| 191 m_client.registerForeignFetchScopes(subScopes, origins); | 199 m_client.registerForeignFetchScopes(subScopes, origins); |
| 192 } | 200 } |
| 193 | 201 |
| 194 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( | 202 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( |
| 195 WebServiceWorkerContextClient& client) | 203 WebServiceWorkerContextClient& client) |
| 196 : m_client(client) {} | 204 : m_client(client) {} |
| 197 | 205 |
| 198 } // namespace blink | 206 } // namespace blink |
| OLD | NEW |