• Dominic Battre's avatar
    Support API Server for ServerCacheReplayer · 0a15edda
    Dominic Battre authored
    The ServerCacheReplayer replays captured communication with the autofill
    server. With the switch of the legacy autofill server to the new API
    server we want to keep using the traces recorded with the old server.
    
    This CL extends the ServerCacheReplayer to intercept traffic to the old
    and the new server, to read recorded traffice to the old and the new
    server, and performs the conversion as necessary.
    
    The ServerCacheReplayer is parameterized with a server type that is set
    according to the features::kAutofillUseApi feature. If the feature is
    configured to use the API server, the ServerCacheReplayer will re-encode
    all stored network traffic to follow the new API server's format when
    loading the data from disk. Analog steps are taken if the
    ServerCacheReplayer is configured to serve as a legacy server.
    
    Bug: 1079488
    Change-Id: I59cb1fe50bddcc4bbc98b7a45fddc7dcc953eaf5
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2209078Reviewed-by: default avatarVincent Boisselle <vincb@google.com>
    Reviewed-by: default avatarVasilii Sukhanov <vasilii@chromium.org>
    Reviewed-by: default avatarDominic Battré <battre@chromium.org>
    Commit-Queue: Dominic Battré <battre@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#771954}
    0a15edda
autofill_captured_sites_interactive_uitest.cc 13.5 KB