128dec84b5
Previously, ContextManager had two API's: one used by analysis server to tell the ContextManager what to do, and one used by the ContextManager to make callbacks to analysis server in response to its requests. The first API was implemented in the class AbstractContextManager, which derived from ContextManager, and the second API was implemented in ServerContextManager, which derived from AbstractContextManager. In addition to causing confusion, this made it impossible to provide an alternate implementation of ContextManager as a plug-in, since the plug in would have had to re-implement the second API, and that would have required accessing private implementation details of the ContextManager. This CL separates the API's: the first API is specified in ContextManager and implemented in ContextManagerImpl, and the second API is specified in ContextManagerCallbacks and implemented in ServerContextManagerCallbacks. In the long run I hope to eliminate the ContextManagerCallbacks class entirely, by having the ContextManager tell its client what to do using return values rather than callbacks. R=brianwilkerson@google.com Review URL: https://codereview.chromium.org//1243893002 .