summaryrefslogtreecommitdiffstats
path: root/chrome/browser/search/hotword_client.h
blob: 13d2f35e5623fb4767975fdf4f9fecf7683614f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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() {}

  // Called when the hotword recognition session state has been changed.
  virtual void OnHotwordStateChanged(bool started) {}

  // Called when the hotword is recognized.
  virtual void OnHotwordRecognized(
      const scoped_refptr<content::SpeechRecognitionSessionPreamble>& preamble)
      = 0;
};

#endif  // CHROME_BROWSER_SEARCH_HOTWORD_CLIENT_H_