| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 virtual void setRegistration(std::unique_ptr<WebServiceWorkerRegistration::H
andle>) = 0; | 55 virtual void setRegistration(std::unique_ptr<WebServiceWorkerRegistration::H
andle>) = 0; |
| 56 | 56 |
| 57 virtual void dispatchActivateEvent(int eventID) = 0; | 57 virtual void dispatchActivateEvent(int eventID) = 0; |
| 58 virtual void dispatchExtendableMessageEvent(int eventID, const WebString& me
ssage, const WebSecurityOrigin& sourceOrigin, const WebMessagePortChannelArray&,
const WebServiceWorkerClientInfo&) = 0; | 58 virtual void dispatchExtendableMessageEvent(int eventID, const WebString& me
ssage, const WebSecurityOrigin& sourceOrigin, const WebMessagePortChannelArray&,
const WebServiceWorkerClientInfo&) = 0; |
| 59 virtual void dispatchExtendableMessageEvent(int eventID, const WebString& me
ssage, const WebSecurityOrigin& sourceOrigin, const WebMessagePortChannelArray&,
std::unique_ptr<WebServiceWorker::Handle>) = 0; | 59 virtual void dispatchExtendableMessageEvent(int eventID, const WebString& me
ssage, const WebSecurityOrigin& sourceOrigin, const WebMessagePortChannelArray&,
std::unique_ptr<WebServiceWorker::Handle>) = 0; |
| 60 virtual void dispatchInstallEvent(int eventID) = 0; | 60 virtual void dispatchInstallEvent(int eventID) = 0; |
| 61 virtual void dispatchFetchEvent(int eventID, const WebServiceWorkerRequest&
webRequest) = 0; | 61 virtual void dispatchFetchEvent(int eventID, const WebServiceWorkerRequest&
webRequest) = 0; |
| 62 virtual void dispatchForeignFetchEvent(int eventID, const WebServiceWorkerRe
quest& webRequest) = 0; | 62 virtual void dispatchForeignFetchEvent(int eventID, const WebServiceWorkerRe
quest& webRequest) = 0; |
| 63 virtual void dispatchGeofencingEvent(int eventID, WebGeofencingEventType, co
nst WebString& regionID, const WebCircularGeofencingRegion&) = 0; | 63 virtual void dispatchGeofencingEvent(int eventID, WebGeofencingEventType, co
nst WebString& regionID, const WebCircularGeofencingRegion&) = 0; |
| 64 | |
| 65 // TODO(nhiroki): Remove this after ExtendableMessageEvent is enabled by | |
| 66 // default (crbug.com/543198). | |
| 67 virtual void dispatchMessageEvent(const WebString& message, const WebMessage
PortChannelArray&) = 0; | |
| 68 | |
| 69 virtual void dispatchNotificationClickEvent(int eventID, int64_t notificatio
nID, const WebNotificationData&, int actionIndex) = 0; | 64 virtual void dispatchNotificationClickEvent(int eventID, int64_t notificatio
nID, const WebNotificationData&, int actionIndex) = 0; |
| 70 virtual void dispatchNotificationCloseEvent(int eventID, int64_t notificatio
nID, const WebNotificationData&) = 0; | 65 virtual void dispatchNotificationCloseEvent(int eventID, int64_t notificatio
nID, const WebNotificationData&) = 0; |
| 71 virtual void dispatchPushEvent(int eventID, const WebString& data) = 0; | 66 virtual void dispatchPushEvent(int eventID, const WebString& data) = 0; |
| 72 | 67 |
| 73 enum LastChanceOption { | 68 enum LastChanceOption { |
| 74 IsNotLastChance, | 69 IsNotLastChance, |
| 75 IsLastChance | 70 IsLastChance |
| 76 }; | 71 }; |
| 77 | 72 |
| 78 // Once the ServiceWorker has finished handling the sync event, | 73 // Once the ServiceWorker has finished handling the sync event, |
| 79 // didHandleSyncEvent is called on the context client. | 74 // didHandleSyncEvent is called on the context client. |
| 80 virtual void dispatchSyncEvent(int syncEventID, const WebString& tag, LastCh
anceOption) = 0; | 75 virtual void dispatchSyncEvent(int syncEventID, const WebString& tag, LastCh
anceOption) = 0; |
| 81 }; | 76 }; |
| 82 | 77 |
| 83 } // namespace blink | 78 } // namespace blink |
| 84 | 79 |
| 85 #endif // WebServiceWorkerContextProxy_h | 80 #endif // WebServiceWorkerContextProxy_h |
| OLD | NEW |