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

Side by Side Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp

Issue 2528683002: PaymentApp: Blink side of payment request event dispatching in service worker. (Closed)
Patch Set: PaymentApp: Blink side of payment request event dispatching in service worker. 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
OLDNEW
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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 m_client.didHandlePushEvent(pushEventID, result, eventDispatchTime); 141 m_client.didHandlePushEvent(pushEventID, result, eventDispatchTime);
142 } 142 }
143 143
144 void ServiceWorkerGlobalScopeClientImpl::didHandleSyncEvent( 144 void ServiceWorkerGlobalScopeClientImpl::didHandleSyncEvent(
145 int syncEventID, 145 int syncEventID,
146 WebServiceWorkerEventResult result, 146 WebServiceWorkerEventResult result,
147 double eventDispatchTime) { 147 double eventDispatchTime) {
148 m_client.didHandleSyncEvent(syncEventID, result, eventDispatchTime); 148 m_client.didHandleSyncEvent(syncEventID, result, eventDispatchTime);
149 } 149 }
150 150
151 void ServiceWorkerGlobalScopeClientImpl::didHandlePaymentRequestEvent(
152 int paymentRequestEventID,
153 WebServiceWorkerEventResult result,
154 double eventDispatchTime) {
155 m_client.didHandlePaymentRequestEvent(paymentRequestEventID, result,
156 eventDispatchTime);
157 }
158
151 void ServiceWorkerGlobalScopeClientImpl::postMessageToClient( 159 void ServiceWorkerGlobalScopeClientImpl::postMessageToClient(
152 const WebString& clientUUID, 160 const WebString& clientUUID,
153 const WebString& message, 161 const WebString& message,
154 std::unique_ptr<WebMessagePortChannelArray> webChannels) { 162 std::unique_ptr<WebMessagePortChannelArray> webChannels) {
155 m_client.postMessageToClient(clientUUID, message, webChannels.release()); 163 m_client.postMessageToClient(clientUUID, message, webChannels.release());
156 } 164 }
157 165
158 void ServiceWorkerGlobalScopeClientImpl::postMessageToCrossOriginClient( 166 void ServiceWorkerGlobalScopeClientImpl::postMessageToCrossOriginClient(
159 const WebCrossOriginServiceWorkerClient& client, 167 const WebCrossOriginServiceWorkerClient& client,
160 const WebString& message, 168 const WebString& message,
(...skipping 29 matching lines...) Expand all
190 const WebVector<WebURL>& subScopes, 198 const WebVector<WebURL>& subScopes,
191 const WebVector<WebSecurityOrigin>& origins) { 199 const WebVector<WebSecurityOrigin>& origins) {
192 m_client.registerForeignFetchScopes(subScopes, origins); 200 m_client.registerForeignFetchScopes(subScopes, origins);
193 } 201 }
194 202
195 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( 203 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl(
196 WebServiceWorkerContextClient& client) 204 WebServiceWorkerContextClient& client)
197 : m_client(client) {} 205 : m_client(client) {}
198 206
199 } // namespace blink 207 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698