| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 return m_client.scope(); | 79 return m_client.scope(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 void ServiceWorkerGlobalScopeClientImpl::didHandleActivateEvent( | 82 void ServiceWorkerGlobalScopeClientImpl::didHandleActivateEvent( |
| 83 int eventID, | 83 int eventID, |
| 84 WebServiceWorkerEventResult result, | 84 WebServiceWorkerEventResult result, |
| 85 double eventDispatchTime) { | 85 double eventDispatchTime) { |
| 86 m_client.didHandleActivateEvent(eventID, result, eventDispatchTime); | 86 m_client.didHandleActivateEvent(eventID, result, eventDispatchTime); |
| 87 } | 87 } |
| 88 | 88 |
| 89 void ServiceWorkerGlobalScopeClientImpl::didHandleBackgroundFetchAbortEvent( |
| 90 int eventID, |
| 91 WebServiceWorkerEventResult result, |
| 92 double eventDispatchTime) { |
| 93 m_client.didHandleBackgroundFetchAbortEvent(eventID, result, |
| 94 eventDispatchTime); |
| 95 } |
| 96 |
| 97 void ServiceWorkerGlobalScopeClientImpl::didHandleBackgroundFetchClickEvent( |
| 98 int eventID, |
| 99 WebServiceWorkerEventResult result, |
| 100 double eventDispatchTime) { |
| 101 m_client.didHandleBackgroundFetchClickEvent(eventID, result, |
| 102 eventDispatchTime); |
| 103 } |
| 104 |
| 89 void ServiceWorkerGlobalScopeClientImpl::didHandleExtendableMessageEvent( | 105 void ServiceWorkerGlobalScopeClientImpl::didHandleExtendableMessageEvent( |
| 90 int eventID, | 106 int eventID, |
| 91 WebServiceWorkerEventResult result, | 107 WebServiceWorkerEventResult result, |
| 92 double eventDispatchTime) { | 108 double eventDispatchTime) { |
| 93 m_client.didHandleExtendableMessageEvent(eventID, result, eventDispatchTime); | 109 m_client.didHandleExtendableMessageEvent(eventID, result, eventDispatchTime); |
| 94 } | 110 } |
| 95 | 111 |
| 96 void ServiceWorkerGlobalScopeClientImpl::respondToFetchEvent( | 112 void ServiceWorkerGlobalScopeClientImpl::respondToFetchEvent( |
| 97 int fetchEventID, | 113 int fetchEventID, |
| 98 double eventDispatchTime) { | 114 double eventDispatchTime) { |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 const WebVector<WebURL>& subScopes, | 206 const WebVector<WebURL>& subScopes, |
| 191 const WebVector<WebSecurityOrigin>& origins) { | 207 const WebVector<WebSecurityOrigin>& origins) { |
| 192 m_client.registerForeignFetchScopes(subScopes, origins); | 208 m_client.registerForeignFetchScopes(subScopes, origins); |
| 193 } | 209 } |
| 194 | 210 |
| 195 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( | 211 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( |
| 196 WebServiceWorkerContextClient& client) | 212 WebServiceWorkerContextClient& client) |
| 197 : m_client(client) {} | 213 : m_client(client) {} |
| 198 | 214 |
| 199 } // namespace blink | 215 } // namespace blink |
| OLD | NEW |