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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SEARCH_HOTWORD_CLIENT_H_ 5 #ifndef CHROME_BROWSER_SEARCH_HOTWORD_CLIENT_H_
6 #define CHROME_BROWSER_SEARCH_HOTWORD_CLIENT_H_ 6 #define CHROME_BROWSER_SEARCH_HOTWORD_CLIENT_H_
7 7
8 #include "base/memory/ref_counted.h"
9
10 namespace content {
11 struct SpeechRecognitionSessionPreamble;
12 }
13
8 class HotwordClient { 14 class HotwordClient {
9 public: 15 public:
10 virtual ~HotwordClient() {} 16 virtual ~HotwordClient() {}
11 17
12 // Called when the hotword recognition session state has been changed. 18 // Called when the hotword recognition session state has been changed.
13 virtual void OnHotwordStateChanged(bool started) {} 19 virtual void OnHotwordStateChanged(bool started) {}
14 20
15 // Called when the hotword is recognized. 21 // Called when the hotword is recognized.
16 virtual void OnHotwordRecognized() = 0; 22 virtual void OnHotwordRecognized(
23 const scoped_refptr<content::SpeechRecognitionSessionPreamble>& preamble)
24 = 0;
17 }; 25 };
18 26
19 #endif // CHROME_BROWSER_SEARCH_HOTWORD_CLIENT_H_ 27 #endif // CHROME_BROWSER_SEARCH_HOTWORD_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698