Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(706)

Unified Diff: chrome/browser/chromeos/launcher_search_provider/service.h

Issue 1043373002: Implement onQueryEnded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/launcher_search_provider/service.h
diff --git a/chrome/browser/chromeos/launcher_search_provider/service.h b/chrome/browser/chromeos/launcher_search_provider/service.h
index 7dab497d203d4ddd2a4ead636df404638737adca..27bac34e5234a8d6f4d039d63f051959083a5c80 100644
--- a/chrome/browser/chromeos/launcher_search_provider/service.h
+++ b/chrome/browser/chromeos/launcher_search_provider/service.h
@@ -29,6 +29,12 @@ class Service : public KeyedService {
// Dispatches onQueryStarted events to listener extensions.
void OnQueryStarted(const std::string& query, const int max_result);
+ // Dispatches onQueryEnded events to listener extensions.
+ void OnQueryEnded();
+
+ // Returns true if there is a running query.
+ bool IsQueryRunning() const;
+
private:
// Returns extension ids of listener extensions.
std::set<extensions::ExtensionId> GetListenerExtensionIds();
@@ -36,6 +42,7 @@ class Service : public KeyedService {
Profile* const profile_;
extensions::ExtensionRegistry* extension_registry_;
uint32 query_id_;
+ bool is_query_running_;
DISALLOW_COPY_AND_ASSIGN(Service);
};

Powered by Google App Engine
This is Rietveld 408576698