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

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

Issue 1191393003: Update client side navigator.connect API to use ServicePortCollection [1/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@serviceport
Patch Set: address more comments Created 5 years, 6 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/WebServicePort.h
diff --git a/public/platform/modules/navigator_services/WebServicePort.h b/public/platform/modules/navigator_services/WebServicePort.h
new file mode 100644
index 0000000000000000000000000000000000000000..8e2e0a9d4e26ad532fe42572cb42355036a8cf95
--- /dev/null
+++ b/public/platform/modules/navigator_services/WebServicePort.h
@@ -0,0 +1,27 @@
+// 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 WebServicePort_h
+#define WebServicePort_h
+
+#include "public/platform/WebURL.h"
+
+namespace blink {
+
+using WebServicePortID = int;
+
+// Struct containing the data representing a ServicePort.
+struct WebServicePort {
+ // Members corresponding to ServicePort.idl attributes.
+ WebURL targetUrl;
+ WebString name;
+ WebString data;
+
+ // Unique ID to identify this port.
+ WebServicePortID id = -1;
+};
+
+} // namespace blink
+
+#endif // WebServicePort_h
« no previous file with comments | « public/platform/modules/navigator_services/OWNERS ('k') | public/platform/modules/navigator_services/WebServicePortProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698