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

Unified Diff: ppapi/api/private/ppb_network_list_private.idl

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
« no previous file with comments | « no previous file | ppapi/c/private/ppb_network_list_private.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/private/ppb_network_list_private.idl
diff --git a/ppapi/api/private/ppb_network_list_private.idl b/ppapi/api/private/ppb_network_list_private.idl
index 00c8a0f2b18c6c44b9f4676145227bbd451b6500..540aa1d75150f24e6aea7aaa41a9b5c0083f5bc9 100644
--- a/ppapi/api/private/ppb_network_list_private.idl
+++ b/ppapi/api/private/ppb_network_list_private.idl
@@ -17,19 +17,24 @@ label Chrome {
[assert_size(4)]
enum PP_NetworkListType_Private {
/**
+ * Type of the network interface is not known.
+ */
+ PP_NETWORKLIST_UNKNOWN = 0,
+
+ /**
* Wired Ethernet network.
*/
- PP_NETWORKLIST_ETHERNET = 0,
+ 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
};
/**
@@ -85,15 +90,15 @@ interface PPB_NetworkList_Private {
* @return Returns type of the network interface with the specified
* <code>index</code>.
*/
- PP_NetworkListType_Private GetType([in] PP_Resource resource,
- [in] uint32_t index);
+ PP_NetworkListType_Private GetType([in] PP_Resource resource,
+ [in] uint32_t index);
/**
* @return Returns current state of the network interface with the
* specified <code>index</code>.
*/
- PP_NetworkListState_Private GetState([in] PP_Resource resource,
- [in] uint32_t index);
+ PP_NetworkListState_Private GetState([in] PP_Resource resource,
+ [in] uint32_t index);
/**
* Gets list of IP addresses for the network interface with the
@@ -108,8 +113,8 @@ interface PPB_NetworkList_Private {
int32_t GetIpAddresses(
[in] PP_Resource resource,
[in] uint32_t index,
- [out, size_is(count)] PP_NetAddress_Private[] addresses,
- [in] int32_t count);
+ [inout, size_is(count)] PP_NetAddress_Private[] addresses,
+ [in] uint32_t count);
/**
* @return Returns display name for the network interface with the
@@ -120,7 +125,7 @@ interface PPB_NetworkList_Private {
/**
* @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([in] PP_Resource resource,
[in] uint32_t index);
« no previous file with comments | « no previous file | ppapi/c/private/ppb_network_list_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698