| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 void ServiceWorkerGlobalScopeClientImpl::GetClients( | 56 void ServiceWorkerGlobalScopeClientImpl::GetClients( |
| 57 const WebServiceWorkerClientQueryOptions& options, | 57 const WebServiceWorkerClientQueryOptions& options, |
| 58 std::unique_ptr<WebServiceWorkerClientsCallbacks> callbacks) { | 58 std::unique_ptr<WebServiceWorkerClientsCallbacks> callbacks) { |
| 59 client_.GetClients(options, std::move(callbacks)); | 59 client_.GetClients(options, std::move(callbacks)); |
| 60 } | 60 } |
| 61 | 61 |
| 62 void ServiceWorkerGlobalScopeClientImpl::OpenWindow( | 62 void ServiceWorkerGlobalScopeClientImpl::OpenWindow( |
| 63 const WebURL& url, | 63 const WebURL& url, |
| 64 std::unique_ptr<WebServiceWorkerClientCallbacks> callbacks) { | 64 std::unique_ptr<WebServiceWorkerClientCallbacks> callbacks) { |
| 65 client_.OpenWindow(url, std::move(callbacks)); | 65 client_.OpenWindow(WebURL(), url, std::move(callbacks)); |
| 66 } |
| 67 |
| 68 void ServiceWorkerGlobalScopeClientImpl::OpenWindowForPaymentHandle( |
| 69 const WebURL& redirect_url, |
| 70 const WebURL& url_to_open, |
| 71 std::unique_ptr<WebServiceWorkerClientCallbacks> callbacks) { |
| 72 client_.OpenWindow(redirect_url, url_to_open, std::move(callbacks)); |
| 66 } | 73 } |
| 67 | 74 |
| 68 void ServiceWorkerGlobalScopeClientImpl::SetCachedMetadata(const WebURL& url, | 75 void ServiceWorkerGlobalScopeClientImpl::SetCachedMetadata(const WebURL& url, |
| 69 const char* data, | 76 const char* data, |
| 70 size_t size) { | 77 size_t size) { |
| 71 client_.SetCachedMetadata(url, data, size); | 78 client_.SetCachedMetadata(url, data, size); |
| 72 } | 79 } |
| 73 | 80 |
| 74 void ServiceWorkerGlobalScopeClientImpl::ClearCachedMetadata( | 81 void ServiceWorkerGlobalScopeClientImpl::ClearCachedMetadata( |
| 75 const WebURL& url) { | 82 const WebURL& url) { |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 const WebVector<WebURL>& sub_scopes, | 251 const WebVector<WebURL>& sub_scopes, |
| 245 const WebVector<WebSecurityOrigin>& origins) { | 252 const WebVector<WebSecurityOrigin>& origins) { |
| 246 client_.RegisterForeignFetchScopes(install_event_id, sub_scopes, origins); | 253 client_.RegisterForeignFetchScopes(install_event_id, sub_scopes, origins); |
| 247 } | 254 } |
| 248 | 255 |
| 249 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( | 256 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( |
| 250 WebServiceWorkerContextClient& client) | 257 WebServiceWorkerContextClient& client) |
| 251 : client_(client) {} | 258 : client_(client) {} |
| 252 | 259 |
| 253 } // namespace blink | 260 } // namespace blink |
| OLD | NEW |