Index: chrome/browser/ui/app_list/speech_recognizer_delegate.h |
diff --git a/chrome/browser/ui/app_list/speech_recognizer_delegate.h b/chrome/browser/ui/app_list/speech_recognizer_delegate.h |
index 22969cdf492f354ace780ab852a6cc8f5badb38f..2ce420613af6d4adee7572bebe8c38681e69d835 100644 |
--- a/chrome/browser/ui/app_list/speech_recognizer_delegate.h |
+++ b/chrome/browser/ui/app_list/speech_recognizer_delegate.h |
@@ -6,6 +6,7 @@ |
#define CHROME_BROWSER_UI_APP_LIST_SPEECH_RECOGNIZER_DELEGATE_H_ |
#include <stdint.h> |
+#include <string> |
#include "base/strings/string16.h" |
#include "ui/app_list/speech_ui_model_observer.h" |
@@ -37,6 +38,11 @@ class SpeechRecognizerDelegate { |
// necessary. Somehow, eliminate this dependency. |
virtual content::WebContents* GetSpeechContents() = 0; |
+ // Get the OAuth2 scope and token to pass to the speech recognizer. Does not |
+ // modify the arguments if no auth token is available or allowed. |
+ virtual void GetSpeechAuthParameters(std::string* auth_scope, |
+ std::string* auth_token) = 0; |
+ |
protected: |
virtual ~SpeechRecognizerDelegate() {} |
}; |