| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 m_client.didHandleNotificationCloseEvent(eventID, result, eventDispatchTime); | 133 m_client.didHandleNotificationCloseEvent(eventID, result, eventDispatchTime); |
| 134 } | 134 } |
| 135 | 135 |
| 136 void ServiceWorkerGlobalScopeClientImpl::didHandlePushEvent( | 136 void ServiceWorkerGlobalScopeClientImpl::didHandlePushEvent( |
| 137 int pushEventID, | 137 int pushEventID, |
| 138 WebServiceWorkerEventResult result, | 138 WebServiceWorkerEventResult result, |
| 139 double eventDispatchTime) { | 139 double eventDispatchTime) { |
| 140 m_client.didHandlePushEvent(pushEventID, result, eventDispatchTime); | 140 m_client.didHandlePushEvent(pushEventID, result, eventDispatchTime); |
| 141 } | 141 } |
| 142 | 142 |
| 143 void ServiceWorkerGlobalScopeClientImpl::didHandleSyncEvent( | |
| 144 int syncEventID, | |
| 145 WebServiceWorkerEventResult result, | |
| 146 double eventDispatchTime) { | |
| 147 m_client.didHandleSyncEvent(syncEventID, result, eventDispatchTime); | |
| 148 } | |
| 149 | |
| 150 void ServiceWorkerGlobalScopeClientImpl::postMessageToClient( | 143 void ServiceWorkerGlobalScopeClientImpl::postMessageToClient( |
| 151 const WebString& clientUUID, | 144 const WebString& clientUUID, |
| 152 const WebString& message, | 145 const WebString& message, |
| 153 std::unique_ptr<WebMessagePortChannelArray> webChannels) { | 146 std::unique_ptr<WebMessagePortChannelArray> webChannels) { |
| 154 m_client.postMessageToClient(clientUUID, message, webChannels.release()); | 147 m_client.postMessageToClient(clientUUID, message, webChannels.release()); |
| 155 } | 148 } |
| 156 | 149 |
| 157 void ServiceWorkerGlobalScopeClientImpl::postMessageToCrossOriginClient( | 150 void ServiceWorkerGlobalScopeClientImpl::postMessageToCrossOriginClient( |
| 158 const WebCrossOriginServiceWorkerClient& client, | 151 const WebCrossOriginServiceWorkerClient& client, |
| 159 const WebString& message, | 152 const WebString& message, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 189 const WebVector<WebURL>& subScopes, | 182 const WebVector<WebURL>& subScopes, |
| 190 const WebVector<WebSecurityOrigin>& origins) { | 183 const WebVector<WebSecurityOrigin>& origins) { |
| 191 m_client.registerForeignFetchScopes(subScopes, origins); | 184 m_client.registerForeignFetchScopes(subScopes, origins); |
| 192 } | 185 } |
| 193 | 186 |
| 194 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( | 187 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( |
| 195 WebServiceWorkerContextClient& client) | 188 WebServiceWorkerContextClient& client) |
| 196 : m_client(client) {} | 189 : m_client(client) {} |
| 197 | 190 |
| 198 } // namespace blink | 191 } // namespace blink |
| OLD | NEW |