Add notification of analyzed files

R=paulberry@google.com

Review URL: https://codereview.chromium.org//1232393005 .
This commit is contained in:
Brian Wilkerson
2015-07-13 15:07:33 -07:00
parent 045d9698d3
commit 2ffa8de794
15 changed files with 647 additions and 31 deletions
@@ -86,6 +86,9 @@ public interface AnalysisServer {
*
* Return library dependency information for use in client-side indexing and package URI
* resolution.
*
* Clients that are only using the libraries field should consider using the analyzedFiles
* notification instead.
*/
public void analysis_getLibraryDependencies(GetLibraryDependenciesConsumer consumer);
@@ -169,6 +172,19 @@ public interface AnalysisServer {
*/
public void analysis_setAnalysisRoots(List<String> included, List<String> excluded, Map<String, String> packageRoots);
/**
* {@code analysis.setGeneralSubscriptions}
*
* Subscribe for general services (that is, services that are not specific to individual files).
* All previous subscriptions are replaced by the given set of services.
*
* It is an error if any of the elements in the list are not valid services. If there is an error,
* then the current subscriptions will remain unchanged.
*
* @param subscriptions A list of the services being subscribed to.
*/
public void analysis_setGeneralSubscriptions(List<String> subscriptions);
/**
* {@code analysis.setPriorityFiles}
*
@@ -195,10 +211,10 @@ public interface AnalysisServer {
/**
* {@code analysis.setSubscriptions}
*
* Subscribe for services. All previous subscriptions are replaced by the current set of
* subscriptions. If a given service is not included as a key in the map then no files will be
* subscribed to the service, exactly as if the service had been included in the map with an
* explicit empty list of files.
* Subscribe for services that are specific to individual files. All previous subscriptions are
* replaced by the current set of subscriptions. If a given service is not included as a key in the
* map then no files will be subscribed to the service, exactly as if the service had been included
* in the map with an explicit empty list of files.
*
* Note that this request determines the set of requested subscriptions. The actual set of
* subscriptions at any given time is the intersection of this set with the set of files currently