Declarative Net Request: Refactor RulesMonitorService (2/2).
This CL refactors RulesMonitorService. In particular, inner classes FileSequenceState and FileSequenceBridge are introduced to handle the file sequence operations. Also, while loading a ruleset on the file sequence, instead of hopping directly to the IO thread, we return the result to the UI thread, which then decides what to do. And unloading a ruleset now proceeds directly to the IO thread instead of hopping to the file sequence first. This refactoring is in preparation for a subsequent CL which will handle indexed ruleset corruption. This CL does not introduce any behavior change. BUG=852058 Change-Id: Idad96dcacc4563c1936890daf3c7bd548b9d4319 Reviewed-on: https://chromium-review.googlesource.com/1119635 Commit-Queue: Karan Bhatia <karandeepb@chromium.org> Reviewed-by:Istiaque Ahmed <lazyboy@chromium.org> Cr-Commit-Position: refs/heads/master@{#573545}
Showing
This diff is collapsed.
Please register or sign in to comment