diff options
author | vsevik@chromium.org <vsevik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-05 16:19:11 +0000 |
---|---|---|
committer | vsevik@chromium.org <vsevik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-05 16:19:11 +0000 |
commit | 200bd3334841949daed91a7c04f74215c2ef9135 (patch) | |
tree | 2d8e3ecbc3645772ad1af6a910c138654f1fdc7d /content/renderer/devtools/devtools_client.h | |
parent | b11961e542a5702c4f25209affe3dc335edff6dd (diff) | |
download | chromium_src-200bd3334841949daed91a7c04f74215c2ef9135.zip chromium_src-200bd3334841949daed91a7c04f74215c2ef9135.tar.gz chromium_src-200bd3334841949daed91a7c04f74215c2ef9135.tar.bz2 |
DevTools: Support workspace files indexing in browser process.
This patch introduces a trigram based index for file system folders added to DevTools.
Three methods are added to the interface between DevTools frontend and browser process:
- IndexPath() performs indexing of the file system folder
- SearchInPath() performs search in the index
- StopIndexing() stops the indexing. This is needed because indexing is time consuming (seconds or even tens of seconds on huge folders).
The trigram based index is essentially a map from trigram to a list of files. The search method returns a list of files matching all trigrams that are present in the search query.
BUG=263313
R=pfeldman@chromium.org
Review URL: https://chromiumcodereview.appspot.com/19851007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215622 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/devtools/devtools_client.h')
-rw-r--r-- | content/renderer/devtools/devtools_client.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/content/renderer/devtools/devtools_client.h b/content/renderer/devtools/devtools_client.h index fedabd0..768253d 100644 --- a/content/renderer/devtools/devtools_client.h +++ b/content/renderer/devtools/devtools_client.h @@ -56,7 +56,14 @@ class CONTENT_EXPORT DevToolsClient virtual void requestFileSystems() OVERRIDE; virtual void addFileSystem() OVERRIDE; virtual void removeFileSystem( - const WebKit::WebString& fileSystemPath) OVERRIDE; + const WebKit::WebString& file_system_path) OVERRIDE; + virtual void indexPath(int request_id, + const WebKit::WebString& file_system_path) OVERRIDE; + virtual void stopIndexing(int request_id) OVERRIDE; + virtual void searchInPath(int request_id, + const WebKit::WebString& file_system_path, + const WebKit::WebString& query) OVERRIDE; + virtual bool isUnderTest() OVERRIDE; void OnDispatchOnInspectorFrontend(const std::string& message); |