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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 virtual void didHandleActivateEvent(int eventID, | 78 virtual void didHandleActivateEvent(int eventID, |
79 WebServiceWorkerEventResult, | 79 WebServiceWorkerEventResult, |
80 double eventDispatchTime) = 0; | 80 double eventDispatchTime) = 0; |
81 virtual void didHandleBackgroundFetchAbortEvent(int eventID, | 81 virtual void didHandleBackgroundFetchAbortEvent(int eventID, |
82 WebServiceWorkerEventResult, | 82 WebServiceWorkerEventResult, |
83 double eventDispatchTime) = 0; | 83 double eventDispatchTime) = 0; |
84 virtual void didHandleBackgroundFetchClickEvent(int eventID, | 84 virtual void didHandleBackgroundFetchClickEvent(int eventID, |
85 WebServiceWorkerEventResult, | 85 WebServiceWorkerEventResult, |
86 double eventDispatchTime) = 0; | 86 double eventDispatchTime) = 0; |
| 87 virtual void didHandleBackgroundFetchFailEvent(int eventID, |
| 88 WebServiceWorkerEventResult, |
| 89 double eventDispatchTime) = 0; |
| 90 virtual void didHandleBackgroundFetchedEvent(int eventID, |
| 91 WebServiceWorkerEventResult, |
| 92 double eventDispatchTime) = 0; |
87 virtual void didHandleExtendableMessageEvent(int eventID, | 93 virtual void didHandleExtendableMessageEvent(int eventID, |
88 WebServiceWorkerEventResult, | 94 WebServiceWorkerEventResult, |
89 double eventDispatchTime) = 0; | 95 double eventDispatchTime) = 0; |
90 // Calling respondToFetchEvent without response means no response was | 96 // Calling respondToFetchEvent without response means no response was |
91 // provided by the service worker in the fetch events, so fallback to native. | 97 // provided by the service worker in the fetch events, so fallback to native. |
92 virtual void respondToFetchEvent(int fetchEventID, | 98 virtual void respondToFetchEvent(int fetchEventID, |
93 double eventDispatchTime) = 0; | 99 double eventDispatchTime) = 0; |
94 virtual void respondToFetchEvent(int fetchEventID, | 100 virtual void respondToFetchEvent(int fetchEventID, |
95 const WebServiceWorkerResponse&, | 101 const WebServiceWorkerResponse&, |
96 double eventDispatchTime) = 0; | 102 double eventDispatchTime) = 0; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 ServiceWorkerGlobalScopeClient() {} | 147 ServiceWorkerGlobalScopeClient() {} |
142 }; | 148 }; |
143 | 149 |
144 MODULES_EXPORT void provideServiceWorkerGlobalScopeClientToWorker( | 150 MODULES_EXPORT void provideServiceWorkerGlobalScopeClientToWorker( |
145 WorkerClients*, | 151 WorkerClients*, |
146 ServiceWorkerGlobalScopeClient*); | 152 ServiceWorkerGlobalScopeClient*); |
147 | 153 |
148 } // namespace blink | 154 } // namespace blink |
149 | 155 |
150 #endif // ServiceWorkerGlobalScopeClient_h | 156 #endif // ServiceWorkerGlobalScopeClient_h |
OLD | NEW |