| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 virtual WebURL scope() const = 0; | 75 virtual WebURL scope() const = 0; |
| 76 | 76 |
| 77 virtual void didHandleActivateEvent(int eventID, | 77 virtual void didHandleActivateEvent(int eventID, |
| 78 WebServiceWorkerEventResult, | 78 WebServiceWorkerEventResult, |
| 79 double eventDispatchTime) = 0; | 79 double eventDispatchTime) = 0; |
| 80 virtual void didHandleExtendableMessageEvent(int eventID, | 80 virtual void didHandleExtendableMessageEvent(int eventID, |
| 81 WebServiceWorkerEventResult, | 81 WebServiceWorkerEventResult, |
| 82 double eventDispatchTime) = 0; | 82 double eventDispatchTime) = 0; |
| 83 // Calling respondToFetchEvent without response means no response was | 83 // Calling respondToFetchEvent without response means no response was |
| 84 // provided by the service worker in the fetch events, so fallback to native. | 84 // provided by the service worker in the fetch events, so fallback to native. |
| 85 virtual void respondToFetchEvent(int responseID, | 85 virtual void respondToFetchEvent(int fetchEventID, |
| 86 double eventDispatchTime) = 0; | 86 double eventDispatchTime) = 0; |
| 87 virtual void respondToFetchEvent(int responseID, | 87 virtual void respondToFetchEvent(int fetchEventID, |
| 88 const WebServiceWorkerResponse&, | 88 const WebServiceWorkerResponse&, |
| 89 double eventDispatchTime) = 0; | 89 double eventDispatchTime) = 0; |
| 90 virtual void didHandleFetchEvent(int eventFinishID, | 90 virtual void didHandleFetchEvent(int fetchEventID, |
| 91 WebServiceWorkerEventResult, | 91 WebServiceWorkerEventResult, |
| 92 double eventDispatchTime) = 0; | 92 double eventDispatchTime) = 0; |
| 93 virtual void didHandleInstallEvent(int installEventID, | 93 virtual void didHandleInstallEvent(int installEventID, |
| 94 WebServiceWorkerEventResult, | 94 WebServiceWorkerEventResult, |
| 95 double eventDispatchTime) = 0; | 95 double eventDispatchTime) = 0; |
| 96 virtual void didHandleNotificationClickEvent(int eventID, | 96 virtual void didHandleNotificationClickEvent(int eventID, |
| 97 WebServiceWorkerEventResult, | 97 WebServiceWorkerEventResult, |
| 98 double eventDispatchTime) = 0; | 98 double eventDispatchTime) = 0; |
| 99 virtual void didHandleNotificationCloseEvent(int eventID, | 99 virtual void didHandleNotificationCloseEvent(int eventID, |
| 100 WebServiceWorkerEventResult, | 100 WebServiceWorkerEventResult, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 131 ServiceWorkerGlobalScopeClient() {} | 131 ServiceWorkerGlobalScopeClient() {} |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 MODULES_EXPORT void provideServiceWorkerGlobalScopeClientToWorker( | 134 MODULES_EXPORT void provideServiceWorkerGlobalScopeClientToWorker( |
| 135 WorkerClients*, | 135 WorkerClients*, |
| 136 ServiceWorkerGlobalScopeClient*); | 136 ServiceWorkerGlobalScopeClient*); |
| 137 | 137 |
| 138 } // namespace blink | 138 } // namespace blink |
| 139 | 139 |
| 140 #endif // ServiceWorkerGlobalScopeClient_h | 140 #endif // ServiceWorkerGlobalScopeClient_h |
| OLD | NEW |