1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_SEARCH_HOTWORD_CLIENT_H_
6 #define CHROME_BROWSER_SEARCH_HOTWORD_CLIENT_H_
8 #include "base/memory/ref_counted.h"
11 struct SpeechRecognitionSessionPreamble
;
16 virtual ~HotwordClient() {}
18 // Called when the hotword recognition session state has been changed.
19 virtual void OnHotwordStateChanged(bool started
) {}
21 // Called when the hotword is recognized.
22 virtual void OnHotwordRecognized(
23 const scoped_refptr
<content::SpeechRecognitionSessionPreamble
>& preamble
)
27 #endif // CHROME_BROWSER_SEARCH_HOTWORD_CLIENT_H_