sync: sessionsv2 - handle deletion of local session by remote client

BUG=98892

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@246869 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 246869
cc: Make clear the origin of resources in ResourceProvider.

Currently, the delegated resource (allocated by the child compositor) is
regarded as internal, which means the external variable is set to false.
However, it's very confusing because we think internal resources should be
updated by the current compositor.
So this CL introduce Origin enum to identify Internal, External, and Delegated.

BUG=337519

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@246870 0039d316-1c4b-4281-b951-d872f2087c98
Fix a crash when a queued connection request is processed on cert load

BUG=None
TEST=None

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

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