1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:47:35 +00:00

Assistant: Add new URLProvider to open URL's in the browser

This commit is contained in:
Edwin Hoksberg 2021-07-02 23:24:19 +02:00 committed by Gunnar Beutner
parent d12e14fa95
commit d5dfc255ed
3 changed files with 45 additions and 0 deletions

View file

@ -138,6 +138,10 @@ public:
m_calculator_provider.query(query, [=, this](auto results) {
recv_results(query, results);
});
m_url_provider.query(query, [=, this](auto results) {
recv_results(query, results);
});
}
private:
@ -178,6 +182,7 @@ private:
AppProvider m_app_provider;
CalculatorProvider m_calculator_provider;
FileProvider m_file_provider;
URLProvider m_url_provider;
Threading::Lock m_lock;
HashMap<String, Vector<NonnullRefPtr<Result>>> m_result_cache;