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

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

Issue 2529223002: event impl
Patch Set: Event dispatch Created 4 years 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
« no previous file with comments | « content/browser/payments/payment_app_event_dispatcher_impl.cc ('k') | content/common/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « content/browser/payments/payment_app_event_dispatcher_impl.cc ('k') | content/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698