[go: up one dir, main page]

Changes to deletion/ownership of nodes in the client lib.

Nodes are now owned by the view manager. Constructors/destructors moved to private/protected. The ViewManager now maintains a map of id->node.
Adds an observer method for destruction. Clients will need to implement this to invalidate their pointer (perhaps I should invent a node smart ptr).
Adds lib tests for node removal, destruction, and connection destruction (when a connection is destroyed, all nodes it created should be destroyed).
Adds a client notification from the service to notify other clients of node destruction & some tests.

R=sky@chromium.org
http://crbug.com/365012

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269414

Review URL: https://codereview.chromium.org/274733004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269426 0039d316-1c4b-4281-b951-d872f2087c98
20 files changed