| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // ServiceWorker specific method. Called after InstallEvent (dispatched | 77 // ServiceWorker specific method. Called after InstallEvent (dispatched |
| 78 // via WebServiceWorkerContextProxy) is handled by the ServiceWorker's | 78 // via WebServiceWorkerContextProxy) is handled by the ServiceWorker's |
| 79 // script context. | 79 // script context. |
| 80 virtual void didHandleInstallEvent(int installEventID) { } | 80 virtual void didHandleInstallEvent(int installEventID) { } |
| 81 | 81 |
| 82 // ServiceWorker specific methods. Called after FetchEvent is handled by the | 82 // ServiceWorker specific methods. Called after FetchEvent is handled by the |
| 83 // ServiceWorker's script context. When no response is provided, the browser | 83 // ServiceWorker's script context. When no response is provided, the browser |
| 84 // should fallback to native fetch. | 84 // should fallback to native fetch. |
| 85 virtual void didHandleFetchEvent(int fetchEventID) { } | 85 virtual void didHandleFetchEvent(int fetchEventID) { } |
| 86 virtual void didHandleFetchEvent(int fetchEventID, const WebServiceWorkerRes
ponse& response) { } | 86 virtual void didHandleFetchEvent(int fetchEventID, const WebServiceWorkerRes
ponse& response) { } |
| 87 |
| 88 // ServiceWorker specific method. Called after SyncEvent (dispatched via |
| 89 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script |
| 90 // context. |
| 91 virtual void didHandleSyncEvent(int syncEventID) { } |
| 87 }; | 92 }; |
| 88 | 93 |
| 89 } // namespace blink | 94 } // namespace blink |
| 90 | 95 |
| 91 #endif // WebWorkerContextClient_h | 96 #endif // WebWorkerContextClient_h |
| OLD | NEW |