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 |