| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CONTENT_BROWSER_SPEECH_SPEECH_RECOGNIZER_H_ | 5 #ifndef CONTENT_BROWSER_SPEECH_SPEECH_RECOGNIZER_H_ |
| 6 #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNIZER_H_ | 6 #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNIZER_H_ |
| 7 | 7 |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 10 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 11 | 12 |
| 12 namespace content { | 13 namespace content { |
| 13 | 14 |
| 14 class SpeechRecognitionEventListener; | 15 class SpeechRecognitionEventListener; |
| 15 | 16 |
| 16 // Handles speech recognition for a session (identified by |session_id|). | 17 // Handles speech recognition for a session (identified by |session_id|). |
| 17 class CONTENT_EXPORT SpeechRecognizer | 18 class CONTENT_EXPORT SpeechRecognizer |
| 18 : public base::RefCountedThreadSafe<SpeechRecognizer> { | 19 : public base::RefCountedThreadSafe<SpeechRecognizer> { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 39 private: | 40 private: |
| 40 SpeechRecognitionEventListener* listener_; | 41 SpeechRecognitionEventListener* listener_; |
| 41 int session_id_; | 42 int session_id_; |
| 42 | 43 |
| 43 DISALLOW_COPY_AND_ASSIGN(SpeechRecognizer); | 44 DISALLOW_COPY_AND_ASSIGN(SpeechRecognizer); |
| 44 }; | 45 }; |
| 45 | 46 |
| 46 } // namespace content | 47 } // namespace content |
| 47 | 48 |
| 48 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNIZER_H_ | 49 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNIZER_H_ |
| OLD | NEW |