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

Unified Diff: net/interfaces/ip_address.mojom

Issue 2745643002: [net] Add a typemap for net::IPAddress (Closed)
Patch Set: resolve code review comments from dcheng Created 3 years, 9 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: net/interfaces/ip_address.mojom
diff --git a/net/interfaces/ip_address.mojom b/net/interfaces/ip_address.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..012b81c4342424297d54c8eb7994f806992a6bab
--- /dev/null
+++ b/net/interfaces/ip_address.mojom
@@ -0,0 +1,12 @@
+// 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 net.interfaces;
+
+// Mirror of net::IPAddress.
+struct IPAddress {
+ // IP address as a numeric value from most to least significant byte.
+ // Will be of length 4 for IPv4 addresses and 16 for IPv6.
+ array<uint8> address;
+};

Powered by Google App Engine
This is Rietveld 408576698