| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 const WebNotificationData&, | 81 const WebNotificationData&, |
| 82 int actionIndex, | 82 int actionIndex, |
| 83 const WebString& reply) = 0; | 83 const WebString& reply) = 0; |
| 84 virtual void dispatchNotificationCloseEvent(int eventID, | 84 virtual void dispatchNotificationCloseEvent(int eventID, |
| 85 const WebString& notificationID, | 85 const WebString& notificationID, |
| 86 const WebNotificationData&) = 0; | 86 const WebNotificationData&) = 0; |
| 87 virtual void dispatchPushEvent(int eventID, const WebString& data) = 0; | 87 virtual void dispatchPushEvent(int eventID, const WebString& data) = 0; |
| 88 | 88 |
| 89 virtual bool hasFetchEventHandler() = 0; | 89 virtual bool hasFetchEventHandler() = 0; |
| 90 | 90 |
| 91 enum LastChanceOption { IsNotLastChance, IsLastChance }; | |
| 92 | |
| 93 // Once the ServiceWorker has finished handling the sync event, | |
| 94 // didHandleSyncEvent is called on the context client. | |
| 95 virtual void dispatchSyncEvent(int syncEventID, | |
| 96 const WebString& tag, | |
| 97 LastChanceOption) = 0; | |
| 98 | |
| 99 virtual void onNavigationPreloadResponse( | 91 virtual void onNavigationPreloadResponse( |
| 100 int fetchEventID, | 92 int fetchEventID, |
| 101 std::unique_ptr<WebServiceWorkerResponse>, | 93 std::unique_ptr<WebServiceWorkerResponse>, |
| 102 std::unique_ptr<WebDataConsumerHandle>) = 0; | 94 std::unique_ptr<WebDataConsumerHandle>) = 0; |
| 103 virtual void onNavigationPreloadError( | 95 virtual void onNavigationPreloadError( |
| 104 int fetchEventID, | 96 int fetchEventID, |
| 105 std::unique_ptr<WebServiceWorkerError>) = 0; | 97 std::unique_ptr<WebServiceWorkerError>) = 0; |
| 106 }; | 98 }; |
| 107 | 99 |
| 108 } // namespace blink | 100 } // namespace blink |
| 109 | 101 |
| 110 #endif // WebServiceWorkerContextProxy_h | 102 #endif // WebServiceWorkerContextProxy_h |
| OLD | NEW |