| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 virtual void didHandleNotificationClickEvent(int eventID, WebServiceWorkerEv
entResult result) { } | 127 virtual void didHandleNotificationClickEvent(int eventID, WebServiceWorkerEv
entResult result) { } |
| 128 | 128 |
| 129 // ServiceWorker specific method. Called after PushEvent (dispatched via | 129 // ServiceWorker specific method. Called after PushEvent (dispatched via |
| 130 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script | 130 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script |
| 131 // context. | 131 // context. |
| 132 virtual void didHandlePushEvent(int pushEventID, WebServiceWorkerEventResult
result) { } | 132 virtual void didHandlePushEvent(int pushEventID, WebServiceWorkerEventResult
result) { } |
| 133 | 133 |
| 134 // ServiceWorker specific method. Called after SyncEvent (dispatched via | 134 // ServiceWorker specific method. Called after SyncEvent (dispatched via |
| 135 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script | 135 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script |
| 136 // context. | 136 // context. |
| 137 virtual void didHandleSyncEvent(int syncEventID) { } | 137 // TODO(chasej): crbug.com/486890 - Remove after cleanup on content side |
| 138 virtual void didHandleSyncEventDeprecated(int syncEventID) { } |
| 139 virtual void didHandleSyncEvent(int syncEventID, WebServiceWorkerEventResult
result) { } |
| 138 | 140 |
| 139 // ServiceWorker specific method. Called after CrossOriginConnectEvent | 141 // ServiceWorker specific method. Called after CrossOriginConnectEvent |
| 140 // (dispatched via WebServiceWorkerContextProxy) is handled by the | 142 // (dispatched via WebServiceWorkerContextProxy) is handled by the |
| 141 // ServiceWorker's script context. | 143 // ServiceWorker's script context. |
| 142 virtual void didHandleCrossOriginConnectEvent(int connectEventID, bool accep
tConnect) { } | 144 virtual void didHandleCrossOriginConnectEvent(int connectEventID, bool accep
tConnect) { } |
| 143 | 145 |
| 144 // Ownership of the returned object is transferred to the caller. | 146 // Ownership of the returned object is transferred to the caller. |
| 145 // This is called on the main thread. | 147 // This is called on the main thread. |
| 146 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider(
WebDataSource*) { return nullptr; } | 148 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider(
WebDataSource*) { return nullptr; } |
| 147 | 149 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // should delete the callback after calling either onSuccess or onError. | 189 // should delete the callback after calling either onSuccess or onError. |
| 188 virtual void focus(const WebString& uuid, WebServiceWorkerClientCallbacks*)
{ BLINK_ASSERT_NOT_REACHED(); } | 190 virtual void focus(const WebString& uuid, WebServiceWorkerClientCallbacks*)
{ BLINK_ASSERT_NOT_REACHED(); } |
| 189 | 191 |
| 190 // Ownership of the passed WebMessagePortChannel is NOT passed to the callee
. | 192 // Ownership of the passed WebMessagePortChannel is NOT passed to the callee
. |
| 191 virtual void stashMessagePort(WebMessagePortChannel*, const WebString& name)
{ BLINK_ASSERT_NOT_REACHED(); } | 193 virtual void stashMessagePort(WebMessagePortChannel*, const WebString& name)
{ BLINK_ASSERT_NOT_REACHED(); } |
| 192 }; | 194 }; |
| 193 | 195 |
| 194 } // namespace blink | 196 } // namespace blink |
| 195 | 197 |
| 196 #endif // WebServiceWorkerContextClient_h | 198 #endif // WebServiceWorkerContextClient_h |
| OLD | NEW |