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

Unified Diff: third_party/WebKit/public/platform/modules/serviceworker/service_worker_stream_handle.mojom

Issue 2703343002: ServiceWorker: Use mojo's data pipe for respondWith(stream) (Closed)
Patch Set: Used TEST_P to test closing the connection first and On{Aborted,Completed} first 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/public/platform/modules/serviceworker/service_worker_stream_handle.mojom
diff --git a/third_party/WebKit/public/platform/modules/serviceworker/service_worker_stream_handle.mojom b/third_party/WebKit/public/platform/modules/serviceworker/service_worker_stream_handle.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..6ffebad91aa8562fd81e628b393a666adfca5d11
--- /dev/null
+++ b/third_party/WebKit/public/platform/modules/serviceworker/service_worker_stream_handle.mojom
@@ -0,0 +1,16 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module blink.mojom;
+
+// Notifies the end of streaming respondWith.
falken 2017/04/10 01:21:57 "The renderer uses this interface to tell the brow
shimazu 2017/04/11 01:32:57 It sounds good. Thanks!
+interface ServiceWorkerStreamCallback {
+ OnCompleted();
+ OnAborted();
+};
+
+struct ServiceWorkerStreamHandle {
+ handle<data_pipe_consumer> stream;
+ ServiceWorkerStreamCallback& callback_request;
+};

Powered by Google App Engine
This is Rietveld 408576698