• Wez's avatar
    [fuchsia] Simplify implementation of the CastRunner. · e15433f3
    Wez authored
    The implementation of the fuchsia.sys.Runner for Cast apps is refactored
    to be easier to maintain, in the following ways:
    
    1. Instead of deriving from WebContentRunner and overriding certain
       behaviours, the CastRunner now instantiates WebContentRunner instances
       internally, to use to manage CastComponents.
    
    2. CastRunner now implements fuchsia.sys.Runner itself, and manages the
       PendingCastComponents, prior to creating & handing off CastComponents
       to be managed by the WebContentRunner(s).
    
    3. The CreateContextParams for the main and isolated contexts are
       constructed using a common base, rather than copying & filtering the
       main context parameters, to create parameters for isolated contexts.
    
    Bug: 1071544
    Change-Id: Ic66ca0a9805e9b00d213c62845e5101ff9dea76e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2153055
    Commit-Queue: Wez <wez@chromium.org>
    Reviewed-by: default avatarDavid Dorwin <ddorwin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#761177}
    e15433f3
web_content_runner.cc 3.8 KB