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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 } | 223 } |
224 | 224 |
225 void ServiceWorkerGlobalScopeClientImpl::Navigate( | 225 void ServiceWorkerGlobalScopeClientImpl::Navigate( |
226 const WebString& client_uuid, | 226 const WebString& client_uuid, |
227 const WebURL& url, | 227 const WebURL& url, |
228 std::unique_ptr<WebServiceWorkerClientCallbacks> callback) { | 228 std::unique_ptr<WebServiceWorkerClientCallbacks> callback) { |
229 client_.Navigate(client_uuid, url, std::move(callback)); | 229 client_.Navigate(client_uuid, url, std::move(callback)); |
230 } | 230 } |
231 | 231 |
232 void ServiceWorkerGlobalScopeClientImpl::RegisterForeignFetchScopes( | 232 void ServiceWorkerGlobalScopeClientImpl::RegisterForeignFetchScopes( |
| 233 const int event_id, |
233 const WebVector<WebURL>& sub_scopes, | 234 const WebVector<WebURL>& sub_scopes, |
234 const WebVector<WebSecurityOrigin>& origins) { | 235 const WebVector<WebSecurityOrigin>& origins) { |
235 client_.RegisterForeignFetchScopes(sub_scopes, origins); | 236 client_.RegisterForeignFetchScopes(event_id, sub_scopes, origins); |
236 } | 237 } |
237 | 238 |
238 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( | 239 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( |
239 WebServiceWorkerContextClient& client) | 240 WebServiceWorkerContextClient& client) |
240 : client_(client) {} | 241 : client_(client) {} |
241 | 242 |
242 } // namespace blink | 243 } // namespace blink |
OLD | NEW |