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

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

Issue 2703343002: ServiceWorker: Use mojo's data pipe for respondWith(stream) (Closed)
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 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 483df639061940ddb5f0905e454edaa97aae9d88..6d52997f278b5e6b712783e5a98c9fa6895ef8ba 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 {
@@ -97,9 +98,14 @@ class MODULES_EXPORT ServiceWorkerGlobalScopeClient
// provided by the service worker in the fetch events, so fallback to native.
virtual void respondToFetchEvent(int fetchEventID,
double eventDispatchTime) = 0;
- virtual void respondToFetchEvent(int fetchEventID,
- const WebServiceWorkerResponse&,
- 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 eventDispatchTime) = 0;

Powered by Google App Engine
This is Rietveld 408576698