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

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

Issue 2684533002: [WIP] Mojofy respondwith
Patch Set: rebase Created 3 years, 8 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 /* 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 double eventDispatchTime) { 124 double eventDispatchTime) {
125 m_client.didHandleExtendableMessageEvent(eventID, result, eventDispatchTime); 125 m_client.didHandleExtendableMessageEvent(eventID, result, eventDispatchTime);
126 } 126 }
127 127
128 void ServiceWorkerGlobalScopeClientImpl::respondToFetchEvent( 128 void ServiceWorkerGlobalScopeClientImpl::respondToFetchEvent(
129 int fetchEventID, 129 int fetchEventID,
130 double eventDispatchTime) { 130 double eventDispatchTime) {
131 m_client.respondToFetchEvent(fetchEventID, eventDispatchTime); 131 m_client.respondToFetchEvent(fetchEventID, eventDispatchTime);
132 } 132 }
133 133
134 void ServiceWorkerGlobalScopeClientImpl::respondToFetchEventWithResponse(
135 int fetchEventID,
136 const WebServiceWorkerResponse& response,
137 double eventDispatchTime) {
138 m_client.respondToFetchEventWithResponse(fetchEventID, response,
139 eventDispatchTime);
140 }
141
142 void ServiceWorkerGlobalScopeClientImpl::respondToFetchEventWithResponseStream(
143 int fetchEventID,
144 const WebServiceWorkerResponse& response,
145 mojo::ScopedDataPipeConsumerHandle data_stream,
146 double eventDispatchTime) {
147 m_client.respondToFetchEventWithResponseStream(
148 fetchEventID, response, std::move(data_stream), eventDispatchTime);
149 }
150
134 void ServiceWorkerGlobalScopeClientImpl::respondToPaymentRequestEvent( 151 void ServiceWorkerGlobalScopeClientImpl::respondToPaymentRequestEvent(
135 int eventID, 152 int eventID,
136 const WebPaymentAppResponse& response, 153 const WebPaymentAppResponse& response,
137 double eventDispatchTime) { 154 double eventDispatchTime) {
138 m_client.respondToPaymentRequestEvent(eventID, response, eventDispatchTime); 155 m_client.respondToPaymentRequestEvent(eventID, response, eventDispatchTime);
139 } 156 }
140 157
141 void ServiceWorkerGlobalScopeClientImpl::respondToFetchEvent(
142 int fetchEventID,
143 const WebServiceWorkerResponse& response,
144 double eventDispatchTime) {
145 m_client.respondToFetchEvent(fetchEventID, response, eventDispatchTime);
146 }
147
148 void ServiceWorkerGlobalScopeClientImpl::didHandleFetchEvent( 158 void ServiceWorkerGlobalScopeClientImpl::didHandleFetchEvent(
149 int fetchEventID, 159 int fetchEventID,
150 WebServiceWorkerEventResult result, 160 WebServiceWorkerEventResult result,
151 double eventDispatchTime) { 161 double eventDispatchTime) {
152 m_client.didHandleFetchEvent(fetchEventID, result, eventDispatchTime); 162 m_client.didHandleFetchEvent(fetchEventID, result, eventDispatchTime);
153 } 163 }
154 164
155 void ServiceWorkerGlobalScopeClientImpl::didHandleInstallEvent( 165 void ServiceWorkerGlobalScopeClientImpl::didHandleInstallEvent(
156 int installEventID, 166 int installEventID,
157 WebServiceWorkerEventResult result, 167 WebServiceWorkerEventResult result,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 const WebVector<WebURL>& subScopes, 239 const WebVector<WebURL>& subScopes,
230 const WebVector<WebSecurityOrigin>& origins) { 240 const WebVector<WebSecurityOrigin>& origins) {
231 m_client.registerForeignFetchScopes(subScopes, origins); 241 m_client.registerForeignFetchScopes(subScopes, origins);
232 } 242 }
233 243
234 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( 244 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl(
235 WebServiceWorkerContextClient& client) 245 WebServiceWorkerContextClient& client)
236 : m_client(client) {} 246 : m_client(client) {}
237 247
238 } // namespace blink 248 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698