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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // ServiceWorker specific method. Called after InstallEvent (dispatched | 117 // ServiceWorker specific method. Called after InstallEvent (dispatched |
118 // via WebServiceWorkerContextProxy) is handled by the ServiceWorker's | 118 // via WebServiceWorkerContextProxy) is handled by the ServiceWorker's |
119 // script context. | 119 // script context. |
120 virtual void didHandleInstallEvent(int installEventID, WebServiceWorkerEvent
Result result) { } | 120 virtual void didHandleInstallEvent(int installEventID, WebServiceWorkerEvent
Result result) { } |
121 | 121 |
122 // ServiceWorker specific method. Called after NotificationClickEvent | 122 // ServiceWorker specific method. Called after NotificationClickEvent |
123 // (dispatched via WebServiceWorkerContextProxy) is handled by the | 123 // (dispatched via WebServiceWorkerContextProxy) is handled by the |
124 // ServiceWorker's script context. | 124 // ServiceWorker's script context. |
125 virtual void didHandleNotificationClickEvent(int eventID, WebServiceWorkerEv
entResult result) { } | 125 virtual void didHandleNotificationClickEvent(int eventID, WebServiceWorkerEv
entResult result) { } |
126 | 126 |
| 127 // ServiceWorker specific method. Called after NotificationCloseEvent |
| 128 // (dispatched via WebServiceWorkerContextProxy) is handled by the |
| 129 // ServiceWorker's script context. |
| 130 virtual void didHandleNotificationCloseEvent(int eventID, WebServiceWorkerEv
entResult result) { } |
| 131 |
127 // ServiceWorker specific method. Called after PushEvent (dispatched via | 132 // ServiceWorker specific method. Called after PushEvent (dispatched via |
128 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script | 133 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script |
129 // context. | 134 // context. |
130 virtual void didHandlePushEvent(int pushEventID, WebServiceWorkerEventResult
result) { } | 135 virtual void didHandlePushEvent(int pushEventID, WebServiceWorkerEventResult
result) { } |
131 | 136 |
132 // ServiceWorker specific method. Called after SyncEvent (dispatched via | 137 // ServiceWorker specific method. Called after SyncEvent (dispatched via |
133 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script | 138 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script |
134 // context. | 139 // context. |
135 virtual void didHandleSyncEvent(int syncEventID, WebServiceWorkerEventResult
result) { } | 140 virtual void didHandleSyncEvent(int syncEventID, WebServiceWorkerEventResult
result) { } |
136 | 141 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 virtual void navigate(const WebString& uuid, const WebURL&, WebServiceWorker
ClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } | 192 virtual void navigate(const WebString& uuid, const WebURL&, WebServiceWorker
ClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } |
188 | 193 |
189 // Called when the worker wants to register subscopes to handle via foreign | 194 // Called when the worker wants to register subscopes to handle via foreign |
190 // fetch. Will only be called while an install event is in progress. | 195 // fetch. Will only be called while an install event is in progress. |
191 virtual void registerForeignFetchScopes(const WebVector<WebURL>& subScopes)
{ BLINK_ASSERT_NOT_REACHED(); } | 196 virtual void registerForeignFetchScopes(const WebVector<WebURL>& subScopes)
{ BLINK_ASSERT_NOT_REACHED(); } |
192 }; | 197 }; |
193 | 198 |
194 } // namespace blink | 199 } // namespace blink |
195 | 200 |
196 #endif // WebServiceWorkerContextClient_h | 201 #endif // WebServiceWorkerContextClient_h |
OLD | NEW |