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

Unified Diff: ppapi/utility/private/network_list_observer_private.h

Issue 10832229: Disallow copying of NetworkListObserverPrivate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698