| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 client_.DidHandleExtendableMessageEvent(event_id, result, | 126 client_.DidHandleExtendableMessageEvent(event_id, result, |
| 127 event_dispatch_time); | 127 event_dispatch_time); |
| 128 } | 128 } |
| 129 | 129 |
| 130 void ServiceWorkerGlobalScopeClientImpl::RespondToFetchEvent( | 130 void ServiceWorkerGlobalScopeClientImpl::RespondToFetchEvent( |
| 131 int fetch_event_id, | 131 int fetch_event_id, |
| 132 double event_dispatch_time) { | 132 double event_dispatch_time) { |
| 133 client_.RespondToFetchEvent(fetch_event_id, event_dispatch_time); | 133 client_.RespondToFetchEvent(fetch_event_id, event_dispatch_time); |
| 134 } | 134 } |
| 135 | 135 |
| 136 void ServiceWorkerGlobalScopeClientImpl::RespondToFetchEventWithResponse( |
| 137 int fetch_event_id, |
| 138 const WebServiceWorkerResponse& response, |
| 139 double event_dispatch_time) { |
| 140 client_.RespondToFetchEventWithResponse(fetch_event_id, response, |
| 141 event_dispatch_time); |
| 142 } |
| 143 |
| 144 void ServiceWorkerGlobalScopeClientImpl::RespondToFetchEventWithResponseStream( |
| 145 int fetch_event_id, |
| 146 const WebServiceWorkerResponse& response, |
| 147 WebServiceWorkerStreamHandle* stream_handle, |
| 148 double event_dispatch_time) { |
| 149 client_.RespondToFetchEventWithResponseStream( |
| 150 fetch_event_id, response, stream_handle, event_dispatch_time); |
| 151 } |
| 152 |
| 136 void ServiceWorkerGlobalScopeClientImpl::RespondToPaymentRequestEvent( | 153 void ServiceWorkerGlobalScopeClientImpl::RespondToPaymentRequestEvent( |
| 137 int event_id, | 154 int event_id, |
| 138 const WebPaymentAppResponse& response, | 155 const WebPaymentAppResponse& response, |
| 139 double event_dispatch_time) { | 156 double event_dispatch_time) { |
| 140 client_.RespondToPaymentRequestEvent(event_id, response, event_dispatch_time); | 157 client_.RespondToPaymentRequestEvent(event_id, response, event_dispatch_time); |
| 141 } | 158 } |
| 142 | 159 |
| 143 void ServiceWorkerGlobalScopeClientImpl::RespondToFetchEvent( | |
| 144 int fetch_event_id, | |
| 145 const WebServiceWorkerResponse& response, | |
| 146 double event_dispatch_time) { | |
| 147 client_.RespondToFetchEvent(fetch_event_id, response, event_dispatch_time); | |
| 148 } | |
| 149 | |
| 150 void ServiceWorkerGlobalScopeClientImpl::DidHandleFetchEvent( | 160 void ServiceWorkerGlobalScopeClientImpl::DidHandleFetchEvent( |
| 151 int fetch_event_id, | 161 int fetch_event_id, |
| 152 WebServiceWorkerEventResult result, | 162 WebServiceWorkerEventResult result, |
| 153 double event_dispatch_time) { | 163 double event_dispatch_time) { |
| 154 client_.DidHandleFetchEvent(fetch_event_id, result, event_dispatch_time); | 164 client_.DidHandleFetchEvent(fetch_event_id, result, event_dispatch_time); |
| 155 } | 165 } |
| 156 | 166 |
| 157 void ServiceWorkerGlobalScopeClientImpl::DidHandleInstallEvent( | 167 void ServiceWorkerGlobalScopeClientImpl::DidHandleInstallEvent( |
| 158 int install_event_id, | 168 int install_event_id, |
| 159 WebServiceWorkerEventResult result, | 169 WebServiceWorkerEventResult result, |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 const WebVector<WebURL>& sub_scopes, | 243 const WebVector<WebURL>& sub_scopes, |
| 234 const WebVector<WebSecurityOrigin>& origins) { | 244 const WebVector<WebSecurityOrigin>& origins) { |
| 235 client_.RegisterForeignFetchScopes(sub_scopes, origins); | 245 client_.RegisterForeignFetchScopes(sub_scopes, origins); |
| 236 } | 246 } |
| 237 | 247 |
| 238 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( | 248 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( |
| 239 WebServiceWorkerContextClient& client) | 249 WebServiceWorkerContextClient& client) |
| 240 : client_(client) {} | 250 : client_(client) {} |
| 241 | 251 |
| 242 } // namespace blink | 252 } // namespace blink |
| OLD | NEW |