Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / app_list / start_page_service.h
index bd21967..1c3352a 100644 (file)
@@ -48,13 +48,13 @@ class StartPageService : public BrowserContextKeyedService {
 
   RecommendedApps* recommended_apps() { return recommended_apps_.get(); }
   Profile* profile() { return profile_; }
+  SpeechRecognitionState state() { return state_; }
   void OnSpeechResult(const base::string16& query, bool is_final);
   void OnSpeechSoundLevelChanged(int16 level);
   void OnSpeechRecognitionStateChanged(SpeechRecognitionState new_state);
 
  private:
-  // A BrowserContextKeyedServiceFactory for this service.
-  class Factory;
+  friend class StartPageServiceFactory;
 
   // ProfileDestroyObserver to shutdown the service on exiting. WebContents
   // depends on the profile and needs to be closed before the profile and its
@@ -76,7 +76,10 @@ class StartPageService : public BrowserContextKeyedService {
   scoped_ptr<StartPageWebContentsDelegate> contents_delegate_;
   scoped_ptr<ProfileDestroyObserver> profile_destroy_observer_;
   scoped_ptr<RecommendedApps> recommended_apps_;
+  SpeechRecognitionState state_;
   ObserverList<StartPageObserver> observers_;
+  bool speech_button_toggled_manually_;
+  bool speech_result_obtained_;
 
   DISALLOW_COPY_AND_ASSIGN(StartPageService);
 };