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

Unified Diff: content/browser/service_worker/embedded_worker_test_helper.h

Issue 2703343002: ServiceWorker: Use mojo's data pipe for respondWith(stream) (Closed)
Patch Set: IFRAME_URL -> SCOPE 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: content/browser/service_worker/embedded_worker_test_helper.h
diff --git a/content/browser/service_worker/embedded_worker_test_helper.h b/content/browser/service_worker/embedded_worker_test_helper.h
index d00b5a322830d574c60f19734ead584239ac813e..eea5ac945098b33a1a3bb89071e64247b684fb44 100644
--- a/content/browser/service_worker/embedded_worker_test_helper.h
+++ b/content/browser/service_worker/embedded_worker_test_helper.h
@@ -210,11 +210,13 @@ class EmbeddedWorkerTestHelper : public IPC::Sender,
const mojom::ServiceWorkerEventDispatcher::
DispatchExtendableMessageEventCallback& callback);
virtual void OnInstallEvent(int embedded_worker_id, int request_id);
- virtual void OnFetchEvent(int embedded_worker_id,
- int fetch_event_id,
- const ServiceWorkerFetchRequest& request,
- mojom::FetchEventPreloadHandlePtr preload_handle,
- const FetchCallback& callback);
+ virtual void OnFetchEvent(
+ int embedded_worker_id,
+ int fetch_event_id,
+ const ServiceWorkerFetchRequest& request,
+ mojom::FetchEventPreloadHandlePtr preload_handle,
+ mojom::ServiceWorkerFetchResponseCallbackPtr response_callback,
+ const FetchCallback& finish_callback);
virtual void OnNotificationClickEvent(
const std::string& notification_id,
const PlatformNotificationData& notification_data,
@@ -288,11 +290,13 @@ class EmbeddedWorkerTestHelper : public IPC::Sender,
const mojom::ServiceWorkerEventDispatcher::
DispatchExtendableMessageEventCallback& callback);
void OnInstallEventStub(int request_id);
- void OnFetchEventStub(int thread_id,
- int fetch_event_id,
- const ServiceWorkerFetchRequest& request,
- mojom::FetchEventPreloadHandlePtr preload_handle,
- const FetchCallback& callback);
+ void OnFetchEventStub(
+ int thread_id,
+ int fetch_event_id,
+ const ServiceWorkerFetchRequest& request,
+ mojom::FetchEventPreloadHandlePtr preload_handle,
+ mojom::ServiceWorkerFetchResponseCallbackPtr response_callback,
+ const FetchCallback& finish_callback);
void OnNotificationClickEventStub(
const std::string& notification_id,
const PlatformNotificationData& notification_data,

Powered by Google App Engine
This is Rietveld 408576698