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 |