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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 service_manager::InterfaceProviderSpec()); | 585 service_manager::InterfaceProviderSpec()); |
580 | 586 |
581 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces( | 587 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces( |
582 new service_manager::InterfaceProvider); | 588 new service_manager::InterfaceProvider); |
583 remote_interfaces->Bind(std::move(interfaces)); | 589 remote_interfaces->Bind(std::move(interfaces)); |
584 rph->SetRemoteInterfaces(std::move(remote_interfaces)); | 590 rph->SetRemoteInterfaces(std::move(remote_interfaces)); |
585 return registry; | 591 return registry; |
586 } | 592 } |
587 | 593 |
588 } // namespace content | 594 } // namespace content |
OLD | NEW |