Support API Server for ServerCacheReplayer
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:Vincent Boisselle <vincb@google.com> Reviewed-by:
Vasilii Sukhanov <vasilii@chromium.org> Reviewed-by:
Dominic Battré <battre@chromium.org> Commit-Queue: Dominic Battré <battre@chromium.org> Cr-Commit-Position: refs/heads/master@{#771954}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment