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

Side by Side Diff: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h

Issue 2523583002: test
Patch Set: test Created 4 years 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 WebServiceWorkerEventResult result, 182 WebServiceWorkerEventResult result,
183 double eventDispatchTime) {} 183 double eventDispatchTime) {}
184 184
185 // ServiceWorker specific method. Called after SyncEvent (dispatched via 185 // ServiceWorker specific method. Called after SyncEvent (dispatched via
186 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script 186 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script
187 // context. 187 // context.
188 virtual void didHandleSyncEvent(int syncEventID, 188 virtual void didHandleSyncEvent(int syncEventID,
189 WebServiceWorkerEventResult result, 189 WebServiceWorkerEventResult result,
190 double eventDispatchTime) {} 190 double eventDispatchTime) {}
191 191
192 // ServiceWorker specific method. Called after PaymentRequestEvent (dispatched
193 // via WebServiceWorkerContextProxy) is handled by the ServiceWorker's script
194 // context.
195 virtual void didHandlePaymentRequestEvent(int paymentRequestEventID,
196 WebServiceWorkerEventResult result,
197 double eventDispatchTime) {}
198
192 // Ownership of the returned object is transferred to the caller. 199 // Ownership of the returned object is transferred to the caller.
193 // This is called on the main thread. 200 // This is called on the main thread.
194 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( 201 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider(
195 WebDataSource*) { 202 WebDataSource*) {
196 return nullptr; 203 return nullptr;
197 } 204 }
198 205
199 // Ownership of the returned object is transferred to the caller. 206 // Ownership of the returned object is transferred to the caller.
200 // This is called on the main thread. 207 // This is called on the main thread.
201 virtual WebServiceWorkerProvider* createServiceWorkerProvider() { 208 virtual WebServiceWorkerProvider* createServiceWorkerProvider() {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 // Called when the worker wants to register subscopes to handle via foreign 274 // Called when the worker wants to register subscopes to handle via foreign
268 // fetch. Will only be called while an install event is in progress. 275 // fetch. Will only be called while an install event is in progress.
269 virtual void registerForeignFetchScopes( 276 virtual void registerForeignFetchScopes(
270 const WebVector<WebURL>& subScopes, 277 const WebVector<WebURL>& subScopes,
271 const WebVector<WebSecurityOrigin>& origins) = 0; 278 const WebVector<WebSecurityOrigin>& origins) = 0;
272 }; 279 };
273 280
274 } // namespace blink 281 } // namespace blink
275 282
276 #endif // WebServiceWorkerContextClient_h 283 #endif // WebServiceWorkerContextClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698