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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h

Issue 2703343002: ServiceWorker: Use mojo's data pipe for respondWith(stream) (Closed)
Patch Set: Updated comments 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h
index 7af50576de6ef44e30e73664bc66a0bec3484de7..b30e590f687b4889c3b13d88b5b06bda08ed11bd 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h
@@ -31,6 +31,7 @@
#ifndef ServiceWorkerGlobalScopeClient_h
#define ServiceWorkerGlobalScopeClient_h
+#include <memory>
#include "core/dom/MessagePort.h"
#include "core/workers/WorkerClients.h"
#include "modules/ModulesExport.h"
@@ -39,9 +40,9 @@
#include "public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h"
#include "public/platform/modules/serviceworker/WebServiceWorkerEventResult.h"
#include "public/platform/modules/serviceworker/WebServiceWorkerSkipWaitingCallbacks.h"
+#include "public/platform/modules/serviceworker/WebServiceWorkerStreamHandle.h"
#include "wtf/Forward.h"
#include "wtf/Noncopyable.h"
-#include <memory>
namespace blink {
@@ -96,14 +97,19 @@ class MODULES_EXPORT ServiceWorkerGlobalScopeClient
virtual void DidHandleExtendableMessageEvent(int event_id,
WebServiceWorkerEventResult,
double event_dispatch_time) = 0;
- // Calling respondToFetchEvent without response means no response was
+ // Calling RespondToFetchEvent without response means no response was
// provided by the service worker in the fetch events, so fallback to native.
- virtual void RespondToFetchEvent(int fetch_event_id,
- double event_dispatch_time) = 0;
- virtual void RespondToFetchEvent(int fetch_event_id,
- const WebServiceWorkerResponse&,
- double event_dispatch_time) = 0;
- virtual void RespondToPaymentRequestEvent(int event_id,
+ virtual void RespondToFetchEvent(int fetchEventID,
horo 2017/04/10 09:24:38 Keep the New Blink Style. Please check other pla
shimazu 2017/04/11 01:32:58 Done.
+ double eventDispatchTime) = 0;
+ virtual void RespondToFetchEventWithResponse(int fetchEventID,
+ const WebServiceWorkerResponse&,
+ double eventDispatchTime) = 0;
+ virtual void RespondToFetchEventWithResponseStream(
+ int fetchEventID,
+ const WebServiceWorkerResponse&,
+ WebServiceWorkerStreamHandle*,
+ double eventDispatchTime) = 0;
+ virtual void RespondToPaymentRequestEvent(int eventID,
const WebPaymentAppResponse&,
double event_dispatch_time) = 0;
virtual void DidHandleFetchEvent(int fetch_event_id,

Powered by Google App Engine
This is Rietveld 408576698