diff options
Diffstat (limited to 'ppapi/utility')
-rw-r--r-- | ppapi/utility/private/network_list_observer_private.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ppapi/utility/private/network_list_observer_private.h b/ppapi/utility/private/network_list_observer_private.h index 22e1e78..066f2ff 100644 --- a/ppapi/utility/private/network_list_observer_private.h +++ b/ppapi/utility/private/network_list_observer_private.h @@ -31,6 +31,13 @@ class NetworkListObserverPrivate { virtual void OnNetworkListChanged(const NetworkListPrivate& list) = 0; private: + // Private copy constructor and assign operator to disallow copying of this + // object. This is necessary to guarantee that |monitor_| is not shared with + // another list observer and is always destroyed when this object is + // destroyed. + NetworkListObserverPrivate(const NetworkListObserverPrivate&); + void operator=(const NetworkListObserverPrivate&); + static void NetworkListCallbackHandler(void* user_data, PP_Resource list_resource); |