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

Unified Diff: ppapi/c/private/ppb_network_list_private.h

Issue 9545010: Add NetworkList/NetworkMonitor hooks and C++ wrappers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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: ppapi/c/private/ppb_network_list_private.h
diff --git a/ppapi/c/private/ppb_network_list_private.h b/ppapi/c/private/ppb_network_list_private.h
index 90cbbe8a252a36aa487e5f933ba64bb00bd228bf..de68ecff20e78b20677c0b4553befa694e2a14aa 100644
--- a/ppapi/c/private/ppb_network_list_private.h
+++ b/ppapi/c/private/ppb_network_list_private.h
@@ -4,7 +4,7 @@
*/
/* From private/ppb_network_list_private.idl,
- * modified Fri Feb 24 10:14:10 2012.
+ * modified Tue Feb 28 11:00:34 2012.
*/
#ifndef PPAPI_C_PRIVATE_PPB_NETWORK_LIST_PRIVATE_H_
@@ -37,15 +37,19 @@ typedef enum {
/**
* Wired Ethernet network.
*/
- PP_NETWORKLIST_ETHERNET = 0,
+ PP_NETWORKLIST_UNKNOWN = 0,
+ /**
+ * Wired Ethernet network.
+ */
+ PP_NETWORKLIST_ETHERNET = 1,
/**
* Wireless Wi-Fi network.
*/
- PP_NETWORKLIST_WIFI = 1,
+ PP_NETWORKLIST_WIFI = 2,
/**
* Cellular network (e.g. LTE).
*/
- PP_NETWORKLIST_CELLULAR = 2
+ PP_NETWORKLIST_CELLULAR = 3
} PP_NetworkListType_Private;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_NetworkListType_Private, 4);
@@ -122,8 +126,8 @@ struct PPB_NetworkList_Private_0_2 {
*/
int32_t (*GetIpAddresses)(PP_Resource resource,
uint32_t index,
- struct PP_NetAddress_Private* addresses[],
- int32_t count);
+ struct PP_NetAddress_Private addresses[],
+ uint32_t count);
/**
* @return Returns display name for the network interface with the
* specified <code>index</code>.
@@ -131,7 +135,7 @@ struct PPB_NetworkList_Private_0_2 {
struct PP_Var (*GetDisplayName)(PP_Resource resource, uint32_t index);
/**
* @return Returns MTU for the network interface with the specified
- * <code>index</code>.
+ * <code>index</code> or 0 if MTU is unknown.
*/
uint32_t (*GetMTU)(PP_Resource resource, uint32_t index);
};

Powered by Google App Engine
This is Rietveld 408576698