[PPAPI] Var destructor is private.

This is in accordance with the usage instructions for RefCounted, to
avoid potential dangling pointer issues.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225417 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 225417
Disconnect native messaging port on read pipe EOF.

Previously native messaging ports were kept open even after native messaging
host has closed stdout pipe which is used to send messages to the connected
webapp. That behavior makes it hard to detect the case when the host exists
but fails to start. Now chrome will close the native messaging port as soon
as it reads EOF from the pipe.

BUG=297380

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225418 0039d316-1c4b-4281-b951-d872f2087c98
Get rid of onActivityPause/Resume/etc methods in ContentView.

BUG=263410

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225419 0039d316-1c4b-4281-b951-d872f2087c98
Fix read overflow in ui::GetStorageForBytes.

Per MSDN, ::GlobalSize() can return a larger size than the original
allocation requested.

BUG=297087

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225420 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 225419
SVN changes up to revision 225420