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

Unified Diff: ppapi/c/ppb_network_monitor.h

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 | « ppapi/c/ppb_network_list.h ('k') | 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/c/ppb_network_monitor.h
diff --git a/ppapi/c/private/ppb_network_monitor_private.h b/ppapi/c/ppb_network_monitor.h
similarity index 68%
rename from ppapi/c/private/ppb_network_monitor_private.h
rename to ppapi/c/ppb_network_monitor.h
index 29aba9816727e8925a5308d22d29f7a8053cc89a..6408a453b9199f00d8699cea07ecbd97fbd08253 100644
--- a/ppapi/c/private/ppb_network_monitor_private.h
+++ b/ppapi/c/ppb_network_monitor.h
@@ -3,12 +3,10 @@
* found in the LICENSE file.
*/
-/* From private/ppb_network_monitor_private.idl,
- * modified Wed Sep 4 14:16:07 2013.
- */
+/* From ppb_network_monitor.idl modified Thu Sep 19 16:42:34 2013. */
-#ifndef PPAPI_C_PRIVATE_PPB_NETWORK_MONITOR_PRIVATE_H_
-#define PPAPI_C_PRIVATE_PPB_NETWORK_MONITOR_PRIVATE_H_
+#ifndef PPAPI_C_PPB_NETWORK_MONITOR_H_
+#define PPAPI_C_PPB_NETWORK_MONITOR_H_
#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_completion_callback.h"
@@ -17,14 +15,12 @@
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_stdint.h"
-#define PPB_NETWORKMONITOR_PRIVATE_INTERFACE_0_3 \
- "PPB_NetworkMonitor_Private;0.3"
-#define PPB_NETWORKMONITOR_PRIVATE_INTERFACE \
- PPB_NETWORKMONITOR_PRIVATE_INTERFACE_0_3
+#define PPB_NETWORKMONITOR_INTERFACE_1_0 "PPB_NetworkMonitor;1.0"
+#define PPB_NETWORKMONITOR_INTERFACE PPB_NETWORKMONITOR_INTERFACE_1_0
/**
* @file
- * This file defines the <code>PPB_NetworkMonitor_Private</code> interface.
+ * This file defines the <code>PPB_NetworkMonitor</code> interface.
*/
@@ -33,10 +29,15 @@
* @{
*/
/**
- * The <code>PPB_NetworkMonitor_Private</code> provides access to
- * notifications of network configuration changes.
+ * The <code>PPB_NetworkMonitor</code> allows to get network interfaces
+ * configuration and monitor network configuration changes.
+ *
+ * Permissions: Apps permission <code>socket</code> with subrule
+ * <code>network-state</code> is required for <code>UpdateNetworkList()</code>.
+ * For more details about network communication permissions, please see:
+ * http://developer.chrome.com/apps/app_network.html
*/
-struct PPB_NetworkMonitor_Private_0_3 {
+struct PPB_NetworkMonitor_1_0 {
/**
* Creates a Network Monitor resource.
*
@@ -73,17 +74,16 @@ struct PPB_NetworkMonitor_Private_0_3 {
*
* @param[in] resource A <code>PP_Resource</code> resource.
*
- * @return Returns <code>PP_TRUE</code> if <code>resource</code> is
- * a <code>PPB_NetworkMonitor_Private</code>, <code>PP_FALSE</code>
- * otherwise.
+ * @return Returns <code>PP_TRUE</code> if <code>resource</code> is a
+ * <code>PPB_NetworkMonitor</code>, <code>PP_FALSE</code> otherwise.
*/
PP_Bool (*IsNetworkMonitor)(PP_Resource resource);
};
-typedef struct PPB_NetworkMonitor_Private_0_3 PPB_NetworkMonitor_Private;
+typedef struct PPB_NetworkMonitor_1_0 PPB_NetworkMonitor;
/**
* @}
*/
-#endif /* PPAPI_C_PRIVATE_PPB_NETWORK_MONITOR_PRIVATE_H_ */
+#endif /* PPAPI_C_PPB_NETWORK_MONITOR_H_ */
« no previous file with comments | « ppapi/c/ppb_network_list.h ('k') | ppapi/c/private/ppb_network_list_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698