| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 20 matching lines...) Expand all Loading... |
| 31 #ifndef ServiceWorkerGlobalScopeClientImpl_h | 31 #ifndef ServiceWorkerGlobalScopeClientImpl_h |
| 32 #define ServiceWorkerGlobalScopeClientImpl_h | 32 #define ServiceWorkerGlobalScopeClientImpl_h |
| 33 | 33 |
| 34 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" | 34 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" |
| 35 #include "public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h" | 35 #include "public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h" |
| 36 #include "public/platform/modules/serviceworker/WebServiceWorkerSkipWaitingCallb
acks.h" | 36 #include "public/platform/modules/serviceworker/WebServiceWorkerSkipWaitingCallb
acks.h" |
| 37 #include <memory> | 37 #include <memory> |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 struct WebPaymentAppResponse; |
| 41 class WebServiceWorkerContextClient; | 42 class WebServiceWorkerContextClient; |
| 42 class WebServiceWorkerResponse; | 43 class WebServiceWorkerResponse; |
| 43 class WebURL; | 44 class WebURL; |
| 44 | 45 |
| 45 class ServiceWorkerGlobalScopeClientImpl final | 46 class ServiceWorkerGlobalScopeClientImpl final |
| 46 : public GarbageCollectedFinalized<ServiceWorkerGlobalScopeClientImpl>, | 47 : public GarbageCollectedFinalized<ServiceWorkerGlobalScopeClientImpl>, |
| 47 public ServiceWorkerGlobalScopeClient { | 48 public ServiceWorkerGlobalScopeClient { |
| 48 USING_GARBAGE_COLLECTED_MIXIN(ServiceWorkerGlobalScopeClientImpl); | 49 USING_GARBAGE_COLLECTED_MIXIN(ServiceWorkerGlobalScopeClientImpl); |
| 49 | 50 |
| 50 public: | 51 public: |
| (...skipping 14 matching lines...) Expand all Loading... |
| 65 void didHandleActivateEvent(int eventID, | 66 void didHandleActivateEvent(int eventID, |
| 66 WebServiceWorkerEventResult, | 67 WebServiceWorkerEventResult, |
| 67 double eventDispatchTime) override; | 68 double eventDispatchTime) override; |
| 68 void didHandleExtendableMessageEvent(int eventID, | 69 void didHandleExtendableMessageEvent(int eventID, |
| 69 WebServiceWorkerEventResult, | 70 WebServiceWorkerEventResult, |
| 70 double eventDispatchTime) override; | 71 double eventDispatchTime) override; |
| 71 void respondToFetchEvent(int responseID, double eventDispatchTime) override; | 72 void respondToFetchEvent(int responseID, double eventDispatchTime) override; |
| 72 void respondToFetchEvent(int responseID, | 73 void respondToFetchEvent(int responseID, |
| 73 const WebServiceWorkerResponse&, | 74 const WebServiceWorkerResponse&, |
| 74 double eventDispatchTime) override; | 75 double eventDispatchTime) override; |
| 76 void respondToPaymentRequestEvent(int responseID, |
| 77 const WebPaymentAppResponse&, |
| 78 double eventDispatchTime) override; |
| 75 void didHandleFetchEvent(int fetchEventID, | 79 void didHandleFetchEvent(int fetchEventID, |
| 76 WebServiceWorkerEventResult, | 80 WebServiceWorkerEventResult, |
| 77 double eventDispatchTime) override; | 81 double eventDispatchTime) override; |
| 78 void didHandleInstallEvent(int installEventID, | 82 void didHandleInstallEvent(int installEventID, |
| 79 WebServiceWorkerEventResult, | 83 WebServiceWorkerEventResult, |
| 80 double eventDispatchTime) override; | 84 double eventDispatchTime) override; |
| 81 void didHandleNotificationClickEvent(int eventID, | 85 void didHandleNotificationClickEvent(int eventID, |
| 82 WebServiceWorkerEventResult, | 86 WebServiceWorkerEventResult, |
| 83 double eventDispatchTime) override; | 87 double eventDispatchTime) override; |
| 84 void didHandleNotificationCloseEvent(int eventID, | 88 void didHandleNotificationCloseEvent(int eventID, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 113 | 117 |
| 114 private: | 118 private: |
| 115 explicit ServiceWorkerGlobalScopeClientImpl(WebServiceWorkerContextClient&); | 119 explicit ServiceWorkerGlobalScopeClientImpl(WebServiceWorkerContextClient&); |
| 116 | 120 |
| 117 WebServiceWorkerContextClient& m_client; | 121 WebServiceWorkerContextClient& m_client; |
| 118 }; | 122 }; |
| 119 | 123 |
| 120 } // namespace blink | 124 } // namespace blink |
| 121 | 125 |
| 122 #endif // ServiceWorkerGlobalScopeClientImpl_h | 126 #endif // ServiceWorkerGlobalScopeClientImpl_h |
| OLD | NEW |