Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: content/browser/service_worker/embedded_worker_test_helper.cc

Issue 2718013004: PaymentApp: Implement respondWith() in PaymentRequestEvent. (content side) (Closed)
Patch Set: PaymentApp: Implement respondWith() in PaymentRequestEvent. (content side) Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 } 197 }
198 198
199 void DispatchSyncEvent( 199 void DispatchSyncEvent(
200 const std::string& tag, 200 const std::string& tag,
201 blink::mojom::BackgroundSyncEventLastChance last_chance, 201 blink::mojom::BackgroundSyncEventLastChance last_chance,
202 const DispatchSyncEventCallback& callback) override { 202 const DispatchSyncEventCallback& callback) override {
203 NOTIMPLEMENTED(); 203 NOTIMPLEMENTED();
204 } 204 }
205 205
206 void DispatchPaymentRequestEvent( 206 void DispatchPaymentRequestEvent(
207 int payment_request_id,
207 payments::mojom::PaymentAppRequestPtr app_request, 208 payments::mojom::PaymentAppRequestPtr app_request,
209 payments::mojom::PaymentAppResponseCallbackPtr response_callback,
nhiroki 2017/03/22 02:24:48 |response_callback| is not used. Is this OK? Do yo
zino 2017/03/22 18:04:44 Ah, I forgot it. I implement it in this patch. T
208 const DispatchPaymentRequestEventCallback& callback) override { 210 const DispatchPaymentRequestEventCallback& callback) override {
209 if (!helper_) 211 if (!helper_)
210 return; 212 return;
211 helper_->OnPaymentRequestEventStub(std::move(app_request), callback); 213 helper_->OnPaymentRequestEventStub(std::move(app_request), callback);
212 } 214 }
213 215
214 void DispatchExtendableMessageEvent( 216 void DispatchExtendableMessageEvent(
215 mojom::ExtendableMessageEventPtr event, 217 mojom::ExtendableMessageEventPtr event,
216 const DispatchExtendableMessageEventCallback& callback) override { 218 const DispatchExtendableMessageEventCallback& callback) override {
217 if (!helper_) 219 if (!helper_)
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 service_manager::InterfaceProviderSpec()); 663 service_manager::InterfaceProviderSpec());
662 664
663 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces( 665 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces(
664 new service_manager::InterfaceProvider); 666 new service_manager::InterfaceProvider);
665 remote_interfaces->Bind(std::move(interfaces)); 667 remote_interfaces->Bind(std::move(interfaces));
666 rph->SetRemoteInterfaces(std::move(remote_interfaces)); 668 rph->SetRemoteInterfaces(std::move(remote_interfaces));
667 return registry; 669 return registry;
668 } 670 }
669 671
670 } // namespace content 672 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698