Index: ppapi/utility/private/network_list_observer_private.h |
diff --git a/ppapi/utility/private/network_list_observer_private.h b/ppapi/utility/private/network_list_observer_private.h |
index 22e1e78c3a9f9a16cf38eff97c8cf206d823482d..066f2ffd6e17649c3d5817351539a18e618ac95d 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); |