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

Side by Side Diff: ppapi/c/private/ppb_network_monitor_private.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/private/ppb_network_list_private.h ('k') | ppapi/cpp/network_list.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 */
5
6 /* From private/ppb_network_monitor_private.idl,
7 * modified Wed Sep 4 14:16:07 2013.
8 */
9
10 #ifndef PPAPI_C_PRIVATE_PPB_NETWORK_MONITOR_PRIVATE_H_
11 #define PPAPI_C_PRIVATE_PPB_NETWORK_MONITOR_PRIVATE_H_
12
13 #include "ppapi/c/pp_bool.h"
14 #include "ppapi/c/pp_completion_callback.h"
15 #include "ppapi/c/pp_instance.h"
16 #include "ppapi/c/pp_macros.h"
17 #include "ppapi/c/pp_resource.h"
18 #include "ppapi/c/pp_stdint.h"
19
20 #define PPB_NETWORKMONITOR_PRIVATE_INTERFACE_0_3 \
21 "PPB_NetworkMonitor_Private;0.3"
22 #define PPB_NETWORKMONITOR_PRIVATE_INTERFACE \
23 PPB_NETWORKMONITOR_PRIVATE_INTERFACE_0_3
24
25 /**
26 * @file
27 * This file defines the <code>PPB_NetworkMonitor_Private</code> interface.
28 */
29
30
31 /**
32 * @addtogroup Interfaces
33 * @{
34 */
35 /**
36 * The <code>PPB_NetworkMonitor_Private</code> provides access to
37 * notifications of network configuration changes.
38 */
39 struct PPB_NetworkMonitor_Private_0_3 {
40 /**
41 * Creates a Network Monitor resource.
42 *
43 * @param[in] instance A <code>PP_Instance</code> identifying one instance of
44 * a module.
45 *
46 * @return A <code>PP_Resource</code> corresponding to a network monitor or 0
47 * on failure.
48 */
49 PP_Resource (*Create)(PP_Instance instance);
50 /**
51 * Gets current network configuration. When called for the first time,
52 * completes as soon as the current network configuration is received from
53 * the browser. Each consequent call will wait for network list changes,
54 * returning a new <code>PPB_NetworkList</code> resource every time.
55 *
56 * @param[in] network_monitor A <code>PP_Resource</code> corresponding to a
57 * network monitor.
58 * @param[out] network_list The <code>PPB_NetworkList<code> resource with the
59 * current state of network interfaces.
60 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon
61 * completion.
62 *
63 * @return An int32_t containing an error code from <code>pp_errors.h</code>.
64 * <code>PP_ERROR_NOACCESS</code> will be returned if the caller doesn't have
65 * required permissions.
66 */
67 int32_t (*UpdateNetworkList)(PP_Resource network_monitor,
68 PP_Resource* network_list,
69 struct PP_CompletionCallback callback);
70 /**
71 * Determines if the specified <code>resource</code> is a
72 * <code>NetworkMonitor</code> object.
73 *
74 * @param[in] resource A <code>PP_Resource</code> resource.
75 *
76 * @return Returns <code>PP_TRUE</code> if <code>resource</code> is
77 * a <code>PPB_NetworkMonitor_Private</code>, <code>PP_FALSE</code>
78 * otherwise.
79 */
80 PP_Bool (*IsNetworkMonitor)(PP_Resource resource);
81 };
82
83 typedef struct PPB_NetworkMonitor_Private_0_3 PPB_NetworkMonitor_Private;
84 /**
85 * @}
86 */
87
88 #endif /* PPAPI_C_PRIVATE_PPB_NETWORK_MONITOR_PRIVATE_H_ */
89
OLDNEW
« no previous file with comments | « ppapi/c/private/ppb_network_list_private.h ('k') | ppapi/cpp/network_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698