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

Unified Diff: ppapi/api/ppb_network_list.idl

Issue 23450012: Make NetworkList and NetworkMonitor APIs public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « native_client_sdk/src/libraries/ppapi_cpp/library.dsc ('k') | ppapi/api/ppb_network_monitor.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/ppb_network_list.idl
diff --git a/ppapi/api/private/ppb_network_list_private.idl b/ppapi/api/ppb_network_list.idl
similarity index 78%
rename from ppapi/api/private/ppb_network_list_private.idl
rename to ppapi/api/ppb_network_list.idl
index f7e1e485d8c7264cb80c4af041a6294899e3695c..70c301f8754c73cbaa52e66d4e6bdeeb119c7b91 100644
--- a/ppapi/api/private/ppb_network_list_private.idl
+++ b/ppapi/api/ppb_network_list.idl
@@ -4,65 +4,64 @@
*/
/**
- * This file defines the <code>PPB_NetworkList_Private</code> interface.
+ * This file defines the <code>PPB_NetworkList</code> interface.
*/
[generate_thunk]
label Chrome {
- M31 = 0.3
+ M31 = 1.0
};
/**
* Type of a network interface.
*/
[assert_size(4)]
-enum PP_NetworkListType_Private {
+enum PP_NetworkList_Type {
/**
* Type of the network interface is not known.
*/
- PP_NETWORKLIST_UNKNOWN = 0,
+ PP_NETWORKLIST_TYPE_UNKNOWN = 0,
/**
* Wired Ethernet network.
*/
- PP_NETWORKLIST_ETHERNET = 1,
+ PP_NETWORKLIST_TYPE_ETHERNET = 1,
/**
* Wireless Wi-Fi network.
*/
- PP_NETWORKLIST_WIFI = 2,
+ PP_NETWORKLIST_TYPE_WIFI = 2,
/**
* Cellular network (e.g. LTE).
*/
- PP_NETWORKLIST_CELLULAR = 3
+ PP_NETWORKLIST_TYPE_CELLULAR = 3
};
/**
* State of a network interface.
*/
[assert_size(4)]
-enum PP_NetworkListState_Private {
+enum PP_NetworkList_State {
/**
* Network interface is down.
*/
- PP_NETWORKLIST_DOWN = 0,
+ PP_NETWORKLIST_STATE_DOWN = 0,
/**
* Network interface is up.
*/
- PP_NETWORKLIST_UP = 1
+ PP_NETWORKLIST_STATE_UP = 1
};
/**
- * The <code>PPB_NetworkList_Private</code> is used to represent a
- * list of network interfaces and their configuration. The content of
- * the list is immutable. The current networks configuration can be
- * received using the <code>PPB_NetworkMonitor_Private</code>
- * interface.
+ * The <code>PPB_NetworkList</code> is used to represent a list of
+ * network interfaces and their configuration. The content of the list
+ * is immutable. The current networks configuration can be received
+ * using the <code>PPB_NetworkMonitor</code> interface.
*/
-interface PPB_NetworkList_Private {
+interface PPB_NetworkList {
/**
* Determines if the specified <code>resource</code> is a
* <code>NetworkList</code> object.
@@ -70,7 +69,7 @@ interface PPB_NetworkList_Private {
* @param[in] resource A <code>PP_Resource</code> resource.
*
* @return Returns <code>PP_TRUE</code> if <code>resource</code> is
- * a <code>PPB_NetworkList_Private</code>, <code>PP_FALSE</code>
+ * a <code>PPB_NetworkList</code>, <code>PP_FALSE</code>
* otherwise.
*/
PP_Bool IsNetworkList([in] PP_Resource resource);
@@ -109,9 +108,9 @@ interface PPB_NetworkList_Private {
* @return Returns type of the network interface with the specified
* <code>index</code>.
*/
- [on_failure=PP_NETWORKLIST_UNKNOWN]
- PP_NetworkListType_Private GetType([in] PP_Resource resource,
- [in] uint32_t index);
+ [on_failure=PP_NETWORKLIST_TYPE_UNKNOWN]
+ PP_NetworkList_Type GetType([in] PP_Resource resource,
+ [in] uint32_t index);
/**
* Gets state of a network interface.
@@ -123,9 +122,9 @@ interface PPB_NetworkList_Private {
* @return Returns current state of the network interface with the
* specified <code>index</code>.
*/
- [on_failure=PP_NETWORKLIST_DOWN]
- PP_NetworkListState_Private GetState([in] PP_Resource resource,
- [in] uint32_t index);
+ [on_failure=PP_NETWORKLIST_STATE_DOWN]
+ PP_NetworkList_State GetState([in] PP_Resource resource,
+ [in] uint32_t index);
/**
* Gets list of IP addresses for a network interface.
« no previous file with comments | « native_client_sdk/src/libraries/ppapi_cpp/library.dsc ('k') | ppapi/api/ppb_network_monitor.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698