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

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

Issue 2528683002: PaymentApp: Blink side of payment request event dispatching in service worker. (Closed)
Patch Set: PaymentApp: Blink side of payment request event dispatching in service worker. 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 WebServiceWorkerEventResult result, 183 WebServiceWorkerEventResult result,
184 double eventDispatchTime) {} 184 double eventDispatchTime) {}
185 185
186 // ServiceWorker specific method. Called after SyncEvent (dispatched via 186 // ServiceWorker specific method. Called after SyncEvent (dispatched via
187 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script 187 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script
188 // context. 188 // context.
189 virtual void didHandleSyncEvent(int syncEventID, 189 virtual void didHandleSyncEvent(int syncEventID,
190 WebServiceWorkerEventResult result, 190 WebServiceWorkerEventResult result,
191 double eventDispatchTime) {} 191 double eventDispatchTime) {}
192 192
193 // ServiceWorker specific method. Called after PaymentRequestEvent (dispatched
194 // via WebServiceWorkerContextProxy) is handled by the ServiceWorker's script
195 // context.
196 virtual void didHandlePaymentRequestEvent(int paymentRequestEventID,
197 WebServiceWorkerEventResult result,
198 double eventDispatchTime) {}
199
193 // Ownership of the returned object is transferred to the caller. 200 // Ownership of the returned object is transferred to the caller.
194 // This is called on the main thread. 201 // This is called on the main thread.
195 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( 202 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider(
196 WebDataSource*) { 203 WebDataSource*) {
197 return nullptr; 204 return nullptr;
198 } 205 }
199 206
200 // Ownership of the returned object is transferred to the caller. 207 // Ownership of the returned object is transferred to the caller.
201 // This is called on the main thread. 208 // This is called on the main thread.
202 virtual WebServiceWorkerProvider* createServiceWorkerProvider() { 209 virtual WebServiceWorkerProvider* createServiceWorkerProvider() {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 // Called when the worker wants to register subscopes to handle via foreign 279 // Called when the worker wants to register subscopes to handle via foreign
273 // fetch. Will only be called while an install event is in progress. 280 // fetch. Will only be called while an install event is in progress.
274 virtual void registerForeignFetchScopes( 281 virtual void registerForeignFetchScopes(
275 const WebVector<WebURL>& subScopes, 282 const WebVector<WebURL>& subScopes,
276 const WebVector<WebSecurityOrigin>& origins) = 0; 283 const WebVector<WebSecurityOrigin>& origins) = 0;
277 }; 284 };
278 285
279 } // namespace blink 286 } // namespace blink
280 287
281 #endif // WebServiceWorkerContextClient_h 288 #endif // WebServiceWorkerContextClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698