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

Unified Diff: public/platform/modules/navigator_services/WebServicePortCallbacks.h

Issue 1210633002: Update navigator.services API to use the new services.onconnect event [1/3]. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@serviceport-part3
Patch Set: rebase Created 5 years, 5 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: public/platform/modules/navigator_services/WebServicePortCallbacks.h
diff --git a/public/platform/modules/navigator_services/WebServicePortCallbacks.h b/public/platform/modules/navigator_services/WebServicePortCallbacks.h
new file mode 100644
index 0000000000000000000000000000000000000000..57f0383e604fc8aa51efc6d880bb6542cb93f368
--- /dev/null
+++ b/public/platform/modules/navigator_services/WebServicePortCallbacks.h
@@ -0,0 +1,21 @@
+// Copyright 2015 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.
+
+#ifndef WebServicePortCallbacks_h
+#define WebServicePortCallbacks_h
+
+#include "public/platform/WebCallbacks.h"
+#include "public/platform/modules/navigator_services/WebServicePort.h"
+
+namespace blink {
+
+using WebServicePortConnectCallbacks = WebCallbacks<WebServicePortID, void>;
+
+// Ownership of the ports passed to onSuccess is kept with the caller, and its
+// lifetime does not outlive past the end of the onSuccess call.
+using WebServicePortConnectEventCallbacks = WebCallbacks<WebServicePort, void>;
+
+} // namespace blink
+
+#endif // WebServicePortCallbacks_h
« no previous file with comments | « Source/web/ServiceWorkerGlobalScopeProxy.cpp ('k') | public/platform/modules/navigator_services/WebServicePortProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698