Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Side by Side Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp

Issue 2746783002: [ServiceWorker] Mojofy InstallEvent of Service Worker (Closed)
Patch Set: Rebase and address shimazu's comment #33 Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698