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

Unified Diff: content/browser/speech/speech_recognizer.h

Issue 15907012: Implement SpeechRecognizerImplAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Convert error codes in Java, refactor *{,JNI} methods into single methods, nits Created 7 years, 6 months 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/speech/speech_recognizer.h
diff --git a/content/browser/speech/speech_recognizer.h b/content/browser/speech/speech_recognizer.h
index bb8fd9760ee1c78658e3b9fcda344745234c572e..a7d4a744edb6d1b11cb117bbe82dc65022531431 100644
--- a/content/browser/speech/speech_recognizer.h
+++ b/content/browser/speech/speech_recognizer.h
@@ -6,6 +6,7 @@
#define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNIZER_H_
#include "base/memory/ref_counted.h"
+#include "content/common/content_export.h"
namespace content {
@@ -26,9 +27,12 @@ class CONTENT_EXPORT SpeechRecognizer
virtual bool IsCapturingAudio() const = 0;
protected:
- friend class base::RefCountedThreadSafe<SpeechRecognizer>;
-
virtual ~SpeechRecognizer() {}
+ SpeechRecognitionEventListener* listener() const { return listener_; }
+ int session_id() const { return session_id_; }
+
+ private:
+ friend class base::RefCountedThreadSafe<SpeechRecognizer>;
Primiano Tucci (use gerrit) 2013/06/11 13:34:51 Nit: Was the move of friend classs.... under priva
janx 2013/06/12 14:47:14 Moved to protected.
SpeechRecognitionEventListener* listener_;
int session_id_;

Powered by Google App Engine
This is Rietveld 408576698