OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/service_worker/embedded_worker_test_helper.h" | 5 #include "content/browser/service_worker/embedded_worker_test_helper.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 std::move(preload_handle), callback); | 179 std::move(preload_handle), callback); |
180 } | 180 } |
181 | 181 |
182 void DispatchSyncEvent( | 182 void DispatchSyncEvent( |
183 const std::string& tag, | 183 const std::string& tag, |
184 blink::mojom::BackgroundSyncEventLastChance last_chance, | 184 blink::mojom::BackgroundSyncEventLastChance last_chance, |
185 const DispatchSyncEventCallback& callback) override { | 185 const DispatchSyncEventCallback& callback) override { |
186 NOTIMPLEMENTED(); | 186 NOTIMPLEMENTED(); |
187 } | 187 } |
188 | 188 |
| 189 void DispatchPaymentRequestEvent( |
| 190 payments::mojom::PaymentAppRequestDataPtr data, |
| 191 const DispatchPaymentRequestEventCallback& callback) override { |
| 192 NOTIMPLEMENTED(); |
| 193 } |
| 194 |
189 void DispatchExtendableMessageEvent( | 195 void DispatchExtendableMessageEvent( |
190 mojom::ExtendableMessageEventPtr event, | 196 mojom::ExtendableMessageEventPtr event, |
191 const DispatchExtendableMessageEventCallback& callback) override { | 197 const DispatchExtendableMessageEventCallback& callback) override { |
192 if (!helper_) | 198 if (!helper_) |
193 return; | 199 return; |
194 helper_->OnExtendableMessageEventStub(std::move(event), callback); | 200 helper_->OnExtendableMessageEventStub(std::move(event), callback); |
195 } | 201 } |
196 | 202 |
197 private: | 203 private: |
198 base::WeakPtr<EmbeddedWorkerTestHelper> helper_; | 204 base::WeakPtr<EmbeddedWorkerTestHelper> helper_; |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 service_manager::InterfaceProviderSpec()); | 572 service_manager::InterfaceProviderSpec()); |
567 | 573 |
568 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces( | 574 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces( |
569 new service_manager::InterfaceProvider); | 575 new service_manager::InterfaceProvider); |
570 remote_interfaces->Bind(std::move(interfaces)); | 576 remote_interfaces->Bind(std::move(interfaces)); |
571 rph->SetRemoteInterfaces(std::move(remote_interfaces)); | 577 rph->SetRemoteInterfaces(std::move(remote_interfaces)); |
572 return registry; | 578 return registry; |
573 } | 579 } |
574 | 580 |
575 } // namespace content | 581 } // namespace content |
OLD | NEW |