[cros search service] Add sync API for local search service
As majority of out clients will be calling the service in-process, we are working to towards using C++ impl directly to avoid mojo overhead. We will add mojo to support out-of-process overhead. This cl is the first step towards that (see bug below). Specifically, this cl 1. Allow LocalSearchServiceProxy to return impl directly. 2. Add sync functions to IndexImpl. 3. Add C++ structs that are equivalent to the mojo structs (Data, Result etc). The mojo structs will be removed later. Following the cl, the existing user of the service (settings) will update their function to use impl directly and will make sync calls. In the following cl, we will remove the mojo interface and rename relevant functions. Settings will make changes accordingly but this two-step change should be simpler than changing everything in one cl. Bug: 1064424, 1018613 Change-Id: I1200779483146a0344f0b15191918c0471b04c9e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2114470 Commit-Queue: Jia Meng <jiameng@chromium.org> Reviewed-by:Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/master@{#753415}
Showing
Please register or sign in to comment