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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 WebServiceWorkerClientCallbacks* callback) { | 184 WebServiceWorkerClientCallbacks* callback) { |
185 m_client.navigate(clientUUID, url, callback); | 185 m_client.navigate(clientUUID, url, callback); |
186 } | 186 } |
187 | 187 |
188 void ServiceWorkerGlobalScopeClientImpl::registerForeignFetchScopes( | 188 void ServiceWorkerGlobalScopeClientImpl::registerForeignFetchScopes( |
189 const WebVector<WebURL>& subScopes, | 189 const WebVector<WebURL>& subScopes, |
190 const WebVector<WebSecurityOrigin>& origins) { | 190 const WebVector<WebSecurityOrigin>& origins) { |
191 m_client.registerForeignFetchScopes(subScopes, origins); | 191 m_client.registerForeignFetchScopes(subScopes, origins); |
192 } | 192 } |
193 | 193 |
| 194 void ServiceWorkerGlobalScopeClientImpl::registerPreloadResponseCallback( |
| 195 int eventID, |
| 196 WebServiceWorkerPreloadResponseCallbacks* callback) { |
| 197 m_client.registerPreloadResponseCallback(eventID, callback); |
| 198 } |
| 199 |
194 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( | 200 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( |
195 WebServiceWorkerContextClient& client) | 201 WebServiceWorkerContextClient& client) |
196 : m_client(client) {} | 202 : m_client(client) {} |
197 | 203 |
198 } // namespace blink | 204 } // namespace blink |
OLD | NEW |