android: Implement single origin and CORS check for video

This patch implements hasSingleSecurityOrigin and didPassCORSAccessCheck
for the Android media player. Since we cannot query this information
directly from the native media player, we use a dedicated resource
loader to track redirects and perform the CORS access check. The native
media player is only started after this process has completed.

The new MediaInfoLoader class is based on BufferedResourceLoader. The info
loading request is started in parallel to the media player, and the DOM
ready state is updated only once the info loader has completed and the
player has provided video metadata.

BUG=234710
TEST=https://www.khronos.org/registry/webgl/conformance-suites/1.0.1/conformance/textures/tex-image-and-sub-image-2d-with-video.html

Review URL: https://chromiumcodereview.appspot.com/16327002

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