• Stephane Zermatten's avatar
    [Autofill Assistant] Keep track of runnable scripts. · 6d8fd697
    Stephane Zermatten authored
    This change introduces ScriptTracker, which keeps track of the
    available scripts, runnable scripts, scripts that are run and scripts
    that were run and exposes these pieces of information through a simple
    interface to the controller.
    
    The tracker isn't bound to the controller yet. The controller is
    expected to:
     - call SetScripts and CheckScripts at the right time
     - listen to changes to the set of runnable script, fetch them
       using runnable_scripts() and make them available for selection
     - call ExecuteScript with whatever script was selected
    
    Change-Id: Ice3d2c81e523449b17db2ba8e7735e55ed837ea6
    Bug: 806868
    Reviewed-on: https://chromium-review.googlesource.com/1193823
    Commit-Queue: Stephane Zermatten <szermatt@chromium.org>
    Reviewed-by: default avatarGanggui Tang <gogerald@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#588821}
    6d8fd697
script.h 837 Bytes