Move automatic text track selection code to AutomaticTrackSelection helper

Move the body of
HTMLMediaElement::honorUserPreferencesForAutomaticTextTrackSelection and
support functions to a helper class (AutomaticTrackSelection).
A straight-forward code movement with the only difference being that the
helper uses the a configuration object set up from HTMLMediaElement state.

Also moves HTMLMediaElement::markCaptionAndSubtitleTracksAsUnconfigured
closer to it user.

BUG=321654

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

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