| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // (dispatched via WebServiceWorkerContextProxy) is handled by the | 139 // (dispatched via WebServiceWorkerContextProxy) is handled by the |
| 140 // ServiceWorker's script context. | 140 // ServiceWorker's script context. |
| 141 virtual void didHandleBackgroundFetchAbortEvent( | 141 virtual void didHandleBackgroundFetchAbortEvent( |
| 142 int eventID, | 142 int eventID, |
| 143 WebServiceWorkerEventResult result, | 143 WebServiceWorkerEventResult result, |
| 144 double eventDispatchTime) {} | 144 double eventDispatchTime) {} |
| 145 virtual void didHandleBackgroundFetchClickEvent( | 145 virtual void didHandleBackgroundFetchClickEvent( |
| 146 int eventID, | 146 int eventID, |
| 147 WebServiceWorkerEventResult result, | 147 WebServiceWorkerEventResult result, |
| 148 double eventDispatchTime) {} | 148 double eventDispatchTime) {} |
| 149 virtual void didHandleBackgroundFetchFailEvent( |
| 150 int eventID, |
| 151 WebServiceWorkerEventResult result, |
| 152 double eventDispatchTime) {} |
| 153 virtual void didHandleBackgroundFetchedEvent( |
| 154 int eventID, |
| 155 WebServiceWorkerEventResult result, |
| 156 double eventDispatchTime) {} |
| 149 | 157 |
| 150 // Called after ExtendableMessageEvent is handled by the ServiceWorker's | 158 // Called after ExtendableMessageEvent is handled by the ServiceWorker's |
| 151 // script context. | 159 // script context. |
| 152 virtual void didHandleExtendableMessageEvent( | 160 virtual void didHandleExtendableMessageEvent( |
| 153 int eventID, | 161 int eventID, |
| 154 WebServiceWorkerEventResult result, | 162 WebServiceWorkerEventResult result, |
| 155 double eventDispatchTime) {} | 163 double eventDispatchTime) {} |
| 156 | 164 |
| 157 // ServiceWorker specific methods. respondFetchEvent will be called after | 165 // ServiceWorker specific methods. respondFetchEvent will be called after |
| 158 // FetchEvent returns a response by the ServiceWorker's script context, and | 166 // FetchEvent returns a response by the ServiceWorker's script context, and |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 // Called when the worker wants to register subscopes to handle via foreign | 300 // Called when the worker wants to register subscopes to handle via foreign |
| 293 // fetch. Will only be called while an install event is in progress. | 301 // fetch. Will only be called while an install event is in progress. |
| 294 virtual void registerForeignFetchScopes( | 302 virtual void registerForeignFetchScopes( |
| 295 const WebVector<WebURL>& subScopes, | 303 const WebVector<WebURL>& subScopes, |
| 296 const WebVector<WebSecurityOrigin>& origins) = 0; | 304 const WebVector<WebSecurityOrigin>& origins) = 0; |
| 297 }; | 305 }; |
| 298 | 306 |
| 299 } // namespace blink | 307 } // namespace blink |
| 300 | 308 |
| 301 #endif // WebServiceWorkerContextClient_h | 309 #endif // WebServiceWorkerContextClient_h |
| OLD | NEW |