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

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') | ppapi/cpp/private/network_list_private.h » ('J')
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..efb0f560bcb861c759c961d4d300cfa869c421a7 100644
--- a/ppapi/api/private/ppb_network_list_private.idl
+++ b/ppapi/api/private/ppb_network_list_private.idl
@@ -19,17 +19,22 @@ enum PP_NetworkListType_Private {
/**
* Wired Ethernet network.
dmichael (off chromium) 2012/03/01 18:29:54 comment seems wrong
Sergey Ulanov 2012/03/02 03:01:37 Done.
*/
- 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
};
/**
@@ -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,
Sergey Ulanov 2012/03/01 00:54:55 changed this to inout because the caller is suppos
+ [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') | ppapi/cpp/private/network_list_private.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698