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

Unified Diff: chrome/browser/ui/app_list/start_page_service.h

Issue 778393002: Add OAuth2 authentication for some voice transcription requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/app_list/start_page_service.h
diff --git a/chrome/browser/ui/app_list/start_page_service.h b/chrome/browser/ui/app_list/start_page_service.h
index d33bd531bbd29826fc90f2c6560ed88b22da43ed..8d6e28f7e7461b2400dcd3bc5012d9d5effbf642 100644
--- a/chrome/browser/ui/app_list/start_page_service.h
+++ b/chrome/browser/ui/app_list/start_page_service.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_
#include <stdint.h>
+#include <string>
#include <vector>
#include "base/basictypes.h"
@@ -15,6 +16,7 @@
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
#include "base/strings/string16.h"
+#include "base/time/default_clock.h"
#include "chrome/browser/ui/app_list/speech_recognizer_delegate.h"
#include "components/keyed_service/core/keyed_service.h"
#include "content/public/browser/web_contents.h"
@@ -29,6 +31,7 @@ class Profile;
namespace app_list {
class RecommendedApps;
+class SpeechAuthHelper;
class SpeechRecognizer;
class StartPageObserver;
@@ -70,6 +73,8 @@ class StartPageService : public KeyedService,
void OnSpeechRecognitionStateChanged(
SpeechRecognitionState new_state) override;
content::WebContents* GetSpeechContents() override;
+ void GetSpeechAuthParameters(std::string* auth_scope,
+ std::string* auth_token) override;
protected:
// Protected for testing.
@@ -113,7 +118,9 @@ class StartPageService : public KeyedService,
bool webui_finished_loading_;
std::vector<base::Closure> pending_webui_callbacks_;
+ base::DefaultClock clock_;
scoped_ptr<SpeechRecognizer> speech_recognizer_;
+ scoped_ptr<SpeechAuthHelper> speech_auth_helper_;
#if defined(OS_CHROMEOS)
scoped_ptr<AudioStatus> audio_status_;
« no previous file with comments | « chrome/browser/ui/app_list/speech_recognizer_delegate.h ('k') | chrome/browser/ui/app_list/start_page_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698