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

Unified Diff: chrome/browser/search/hotword_client.h

Issue 809603003: Plumb preamble log data from the hotword extension into the speech recognizer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build. Created 6 years 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/search/hotword_client.h
diff --git a/chrome/browser/search/hotword_client.h b/chrome/browser/search/hotword_client.h
index 8862b90d5bbd9cd7c5b16299e0561b74903fb2b2..13d2f35e5623fb4767975fdf4f9fecf7683614f7 100644
--- a/chrome/browser/search/hotword_client.h
+++ b/chrome/browser/search/hotword_client.h
@@ -5,6 +5,12 @@
#ifndef CHROME_BROWSER_SEARCH_HOTWORD_CLIENT_H_
#define CHROME_BROWSER_SEARCH_HOTWORD_CLIENT_H_
+#include "base/memory/ref_counted.h"
+
+namespace content {
+struct SpeechRecognitionSessionPreamble;
+}
+
class HotwordClient {
public:
virtual ~HotwordClient() {}
@@ -13,7 +19,9 @@ class HotwordClient {
virtual void OnHotwordStateChanged(bool started) {}
// Called when the hotword is recognized.
- virtual void OnHotwordRecognized() = 0;
+ virtual void OnHotwordRecognized(
+ const scoped_refptr<content::SpeechRecognitionSessionPreamble>& preamble)
+ = 0;
};
#endif // CHROME_BROWSER_SEARCH_HOTWORD_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698