OLD | NEW |
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 27 matching lines...) Expand all Loading... |
38 #include "public/platform/modules/serviceworker/WebServiceWorkerClientsClaimCall
backs.h" | 38 #include "public/platform/modules/serviceworker/WebServiceWorkerClientsClaimCall
backs.h" |
39 #include "public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h" | 39 #include "public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h" |
40 #include "public/platform/modules/serviceworker/WebServiceWorkerEventResult.h" | 40 #include "public/platform/modules/serviceworker/WebServiceWorkerEventResult.h" |
41 #include "public/platform/modules/serviceworker/WebServiceWorkerSkipWaitingCallb
acks.h" | 41 #include "public/platform/modules/serviceworker/WebServiceWorkerSkipWaitingCallb
acks.h" |
42 #include "public/web/WebDevToolsAgentClient.h" | 42 #include "public/web/WebDevToolsAgentClient.h" |
43 #include "v8/include/v8.h" | 43 #include "v8/include/v8.h" |
44 | 44 |
45 namespace blink { | 45 namespace blink { |
46 | 46 |
47 struct WebServiceWorkerClientQueryOptions; | 47 struct WebServiceWorkerClientQueryOptions; |
48 class WebDataSource; | |
49 class WebServiceWorkerContextProxy; | 48 class WebServiceWorkerContextProxy; |
50 class WebServiceWorkerNetworkProvider; | 49 class WebServiceWorkerNetworkProvider; |
51 class WebServiceWorkerProvider; | 50 class WebServiceWorkerProvider; |
52 class WebServiceWorkerResponse; | 51 class WebServiceWorkerResponse; |
53 class WebString; | 52 class WebString; |
54 | 53 |
55 // This interface is implemented by the client. It is supposed to be created | 54 // This interface is implemented by the client. It is supposed to be created |
56 // on the main thread and then passed on to the worker thread by a newly | 55 // on the main thread and then passed on to the worker thread by a newly |
57 // created WorkerGlobalScope. Unless otherwise noted, all methods of this class | 56 // created WorkerGlobalScope. Unless otherwise noted, all methods of this class |
58 // are called on the worker thread. | 57 // are called on the worker thread. |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 | 195 |
197 // ServiceWorker specific method. Called after PaymentRequestEvent (dispatched | 196 // ServiceWorker specific method. Called after PaymentRequestEvent (dispatched |
198 // via WebServiceWorkerContextProxy) is handled by the ServiceWorker's script | 197 // via WebServiceWorkerContextProxy) is handled by the ServiceWorker's script |
199 // context. | 198 // context. |
200 virtual void didHandlePaymentRequestEvent(int paymentRequestEventID, | 199 virtual void didHandlePaymentRequestEvent(int paymentRequestEventID, |
201 WebServiceWorkerEventResult result, | 200 WebServiceWorkerEventResult result, |
202 double eventDispatchTime) {} | 201 double eventDispatchTime) {} |
203 | 202 |
204 // Ownership of the returned object is transferred to the caller. | 203 // Ownership of the returned object is transferred to the caller. |
205 // This is called on the main thread. | 204 // This is called on the main thread. |
206 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( | 205 virtual WebServiceWorkerNetworkProvider* |
207 WebDataSource*) { | 206 createServiceWorkerNetworkProvider() { |
208 return nullptr; | 207 return nullptr; |
209 } | 208 } |
210 | 209 |
211 // Ownership of the returned object is transferred to the caller. | 210 // Ownership of the returned object is transferred to the caller. |
212 // This is called on the main thread. | 211 // This is called on the main thread. |
213 virtual WebServiceWorkerProvider* createServiceWorkerProvider() { | 212 virtual WebServiceWorkerProvider* createServiceWorkerProvider() { |
214 return nullptr; | 213 return nullptr; |
215 } | 214 } |
216 | 215 |
217 // Ownership of the passed callbacks is transferred to the callee, callee | 216 // Ownership of the passed callbacks is transferred to the callee, callee |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 // Called when the worker wants to register subscopes to handle via foreign | 275 // Called when the worker wants to register subscopes to handle via foreign |
277 // fetch. Will only be called while an install event is in progress. | 276 // fetch. Will only be called while an install event is in progress. |
278 virtual void registerForeignFetchScopes( | 277 virtual void registerForeignFetchScopes( |
279 const WebVector<WebURL>& subScopes, | 278 const WebVector<WebURL>& subScopes, |
280 const WebVector<WebSecurityOrigin>& origins) = 0; | 279 const WebVector<WebSecurityOrigin>& origins) = 0; |
281 }; | 280 }; |
282 | 281 |
283 } // namespace blink | 282 } // namespace blink |
284 | 283 |
285 #endif // WebServiceWorkerContextClient_h | 284 #endif // WebServiceWorkerContextClient_h |
OLD | NEW |