| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 int responseID, | 71 int responseID, |
| 72 int eventFinishID, | 72 int eventFinishID, |
| 73 const WebServiceWorkerRequest& webRequest) = 0; | 73 const WebServiceWorkerRequest& webRequest) = 0; |
| 74 virtual void dispatchForeignFetchEvent( | 74 virtual void dispatchForeignFetchEvent( |
| 75 int responseID, | 75 int responseID, |
| 76 int eventFinishID, | 76 int eventFinishID, |
| 77 const WebServiceWorkerRequest& webRequest) = 0; | 77 const WebServiceWorkerRequest& webRequest) = 0; |
| 78 virtual void dispatchNotificationClickEvent(int eventID, | 78 virtual void dispatchNotificationClickEvent(int eventID, |
| 79 const WebString& notificationID, | 79 const WebString& notificationID, |
| 80 const WebNotificationData&, | 80 const WebNotificationData&, |
| 81 int actionIndex) = 0; | 81 int actionIndex, |
| 82 const WebString& reply) = 0; |
| 82 virtual void dispatchNotificationCloseEvent(int eventID, | 83 virtual void dispatchNotificationCloseEvent(int eventID, |
| 83 const WebString& notificationID, | 84 const WebString& notificationID, |
| 84 const WebNotificationData&) = 0; | 85 const WebNotificationData&) = 0; |
| 85 virtual void dispatchPushEvent(int eventID, const WebString& data) = 0; | 86 virtual void dispatchPushEvent(int eventID, const WebString& data) = 0; |
| 86 | 87 |
| 87 virtual bool hasFetchEventHandler() = 0; | 88 virtual bool hasFetchEventHandler() = 0; |
| 88 | 89 |
| 89 enum LastChanceOption { IsNotLastChance, IsLastChance }; | 90 enum LastChanceOption { IsNotLastChance, IsLastChance }; |
| 90 | 91 |
| 91 // Once the ServiceWorker has finished handling the sync event, | 92 // Once the ServiceWorker has finished handling the sync event, |
| 92 // didHandleSyncEvent is called on the context client. | 93 // didHandleSyncEvent is called on the context client. |
| 93 virtual void dispatchSyncEvent(int syncEventID, | 94 virtual void dispatchSyncEvent(int syncEventID, |
| 94 const WebString& tag, | 95 const WebString& tag, |
| 95 LastChanceOption) = 0; | 96 LastChanceOption) = 0; |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 } // namespace blink | 99 } // namespace blink |
| 99 | 100 |
| 100 #endif // WebServiceWorkerContextProxy_h | 101 #endif // WebServiceWorkerContextProxy_h |
| OLD | NEW |