| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 const WebMessagePortChannelArray&, | 61 const WebMessagePortChannelArray&, |
| 62 const WebServiceWorkerClientInfo&) = 0; | 62 const WebServiceWorkerClientInfo&) = 0; |
| 63 virtual void dispatchExtendableMessageEvent( | 63 virtual void dispatchExtendableMessageEvent( |
| 64 int eventID, | 64 int eventID, |
| 65 const WebString& message, | 65 const WebString& message, |
| 66 const WebSecurityOrigin& sourceOrigin, | 66 const WebSecurityOrigin& sourceOrigin, |
| 67 const WebMessagePortChannelArray&, | 67 const WebMessagePortChannelArray&, |
| 68 std::unique_ptr<WebServiceWorker::Handle>) = 0; | 68 std::unique_ptr<WebServiceWorker::Handle>) = 0; |
| 69 virtual void dispatchInstallEvent(int eventID) = 0; | 69 virtual void dispatchInstallEvent(int eventID) = 0; |
| 70 virtual void dispatchFetchEvent( | 70 virtual void dispatchFetchEvent( |
| 71 int responseID, | 71 int fetchEventID, |
| 72 int eventFinishID, | |
| 73 const WebServiceWorkerRequest& webRequest) = 0; | 72 const WebServiceWorkerRequest& webRequest) = 0; |
| 74 virtual void dispatchForeignFetchEvent( | 73 virtual void dispatchForeignFetchEvent( |
| 75 int responseID, | 74 int fetchEventID, |
| 76 int eventFinishID, | |
| 77 const WebServiceWorkerRequest& webRequest) = 0; | 75 const WebServiceWorkerRequest& webRequest) = 0; |
| 78 virtual void dispatchNotificationClickEvent(int eventID, | 76 virtual void dispatchNotificationClickEvent(int eventID, |
| 79 const WebString& notificationID, | 77 const WebString& notificationID, |
| 80 const WebNotificationData&, | 78 const WebNotificationData&, |
| 81 int actionIndex) = 0; | 79 int actionIndex) = 0; |
| 82 virtual void dispatchNotificationCloseEvent(int eventID, | 80 virtual void dispatchNotificationCloseEvent(int eventID, |
| 83 const WebString& notificationID, | 81 const WebString& notificationID, |
| 84 const WebNotificationData&) = 0; | 82 const WebNotificationData&) = 0; |
| 85 virtual void dispatchPushEvent(int eventID, const WebString& data) = 0; | 83 virtual void dispatchPushEvent(int eventID, const WebString& data) = 0; |
| 86 | 84 |
| 87 virtual bool hasFetchEventHandler() = 0; | 85 virtual bool hasFetchEventHandler() = 0; |
| 88 | 86 |
| 89 enum LastChanceOption { IsNotLastChance, IsLastChance }; | 87 enum LastChanceOption { IsNotLastChance, IsLastChance }; |
| 90 | 88 |
| 91 // Once the ServiceWorker has finished handling the sync event, | 89 // Once the ServiceWorker has finished handling the sync event, |
| 92 // didHandleSyncEvent is called on the context client. | 90 // didHandleSyncEvent is called on the context client. |
| 93 virtual void dispatchSyncEvent(int syncEventID, | 91 virtual void dispatchSyncEvent(int syncEventID, |
| 94 const WebString& tag, | 92 const WebString& tag, |
| 95 LastChanceOption) = 0; | 93 LastChanceOption) = 0; |
| 96 }; | 94 }; |
| 97 | 95 |
| 98 } // namespace blink | 96 } // namespace blink |
| 99 | 97 |
| 100 #endif // WebServiceWorkerContextProxy_h | 98 #endif // WebServiceWorkerContextProxy_h |
| OLD | NEW |