Revert "Reland c91b178b07b0d - Delete dead signin code (SigninGlobalError)"
[chromium-blink-merge.git] / chrome / browser / search / hotword_client.h
blob13d2f35e5623fb4767975fdf4f9fecf7683614f7
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"
10 namespace content {
11 struct SpeechRecognitionSessionPreamble;
14 class HotwordClient {
15 public:
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)
24 = 0;
27 #endif // CHROME_BROWSER_SEARCH_HOTWORD_CLIENT_H_