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

Side by Side Diff: chrome/browser/ui/app_list/start_page_service.h

Issue 797493002: Eliminate the launcher speech recognizer's dependency on the start page WebContents. (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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_
6 #define CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 RecommendedApps* recommended_apps() { return recommended_apps_.get(); } 66 RecommendedApps* recommended_apps() { return recommended_apps_.get(); }
67 Profile* profile() { return profile_; } 67 Profile* profile() { return profile_; }
68 SpeechRecognitionState state() { return state_; } 68 SpeechRecognitionState state() { return state_; }
69 69
70 // Overridden from app_list::SpeechRecognizerDelegate: 70 // Overridden from app_list::SpeechRecognizerDelegate:
71 void OnSpeechResult(const base::string16& query, bool is_final) override; 71 void OnSpeechResult(const base::string16& query, bool is_final) override;
72 void OnSpeechSoundLevelChanged(int16_t level) override; 72 void OnSpeechSoundLevelChanged(int16_t level) override;
73 void OnSpeechRecognitionStateChanged( 73 void OnSpeechRecognitionStateChanged(
74 SpeechRecognitionState new_state) override; 74 SpeechRecognitionState new_state) override;
75 content::WebContents* GetSpeechContents() override;
76 void GetSpeechAuthParameters(std::string* auth_scope, 75 void GetSpeechAuthParameters(std::string* auth_scope,
77 std::string* auth_token) override; 76 std::string* auth_token) override;
78 77
79 protected: 78 protected:
80 // Protected for testing. 79 // Protected for testing.
81 explicit StartPageService(Profile* profile); 80 explicit StartPageService(Profile* profile);
82 ~StartPageService() override; 81 ~StartPageService() override;
83 82
84 private: 83 private:
85 friend class StartPageServiceFactory; 84 friend class StartPageServiceFactory;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 #endif 126 #endif
128 127
129 base::WeakPtrFactory<StartPageService> weak_factory_; 128 base::WeakPtrFactory<StartPageService> weak_factory_;
130 129
131 DISALLOW_COPY_AND_ASSIGN(StartPageService); 130 DISALLOW_COPY_AND_ASSIGN(StartPageService);
132 }; 131 };
133 132
134 } // namespace app_list 133 } // namespace app_list
135 134
136 #endif // CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ 135 #endif // CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_
OLDNEW
« 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