Push cue timeline management out of LoadableTextTrack

When a LoadableTextTrack receives cues from the loader, it adds them to
the cue list and notifies the CueTimeline. This is the only place where
this kind of TextTrack state is directly handled by subclasses of
TextTrack. Moving this to TextTrack we can "lock down" state - cue list
and timeline - some more, and have updates due to list-mutations in a
single place (there's currently still updates in HTMLMediaElement though.)
This also makes LoadableTextTrack look more like a provider of cues.
Transport of cues needs to be updated to use a wider type. Also make use
of Vector::swap in VTTParser while changing the signatures.

BUG=321654

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

git-svn-id: svn://svn.chromium.org/blink/trunk@190657 bbb929c8-8fbe-4397-9dbb-9b2b20218538
7 files changed
tree: cec1146949be80b6dbb33c94a0be31a4eadf8b5b
  1. third_party/