MediaStream API: Enhance MediaStreamDescriptor add/remove component
This patch allows the embedder to build up a MediaStreamDescriptor before announcing it to JS.
Also made a bit of refactoring to clean up the code in this area.

Patch partly covered by Blink layout tests and partly by existing and soon to land content_unittests and content_browsertests.

Review URL:

git-svn-id: svn:// bbb929c8-8fbe-4397-9dbb-9b2b20218538
2 files changed