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

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

Issue 2787693002: Remove more dead app list code. (Closed)
Patch Set: updated comment Created 3 years, 8 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 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 9
10 #include <memory> 10 #include <memory>
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 // ProfileDestroyObserver to shutdown the service on exiting. WebContents 110 // ProfileDestroyObserver to shutdown the service on exiting. WebContents
111 // depends on the profile and needs to be closed before the profile and its 111 // depends on the profile and needs to be closed before the profile and its
112 // keyed service shutdown. 112 // keyed service shutdown.
113 class ProfileDestroyObserver; 113 class ProfileDestroyObserver;
114 114
115 // The WebContentsDelegate implementation for the start page. This allows 115 // The WebContentsDelegate implementation for the start page. This allows
116 // getUserMedia() request from the web contents. 116 // getUserMedia() request from the web contents.
117 class StartPageWebContentsDelegate; 117 class StartPageWebContentsDelegate;
118 118
119 #if defined(OS_CHROMEOS)
120 // This class observes the change of audio input device availability and 119 // This class observes the change of audio input device availability and
121 // checks if currently the system has valid audio input. 120 // checks if currently the system has valid audio input.
122 class AudioStatus; 121 class AudioStatus;
123 #endif
124 122
125 // This class observes network change events and disables/enables voice search 123 // This class observes network change events and disables/enables voice search
126 // based on network connectivity. 124 // based on network connectivity.
127 class NetworkChangeObserver; 125 class NetworkChangeObserver;
128 126
129 void LoadContents(); 127 void LoadContents();
130 void UnloadContents(); 128 void UnloadContents();
131 129
132 // Loads the start page URL for |contents_|. 130 // Loads the start page URL for |contents_|.
133 void LoadStartPageURL(); 131 void LoadStartPageURL();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 166
169 bool webui_finished_loading_; 167 bool webui_finished_loading_;
170 std::vector<base::Closure> pending_webui_callbacks_; 168 std::vector<base::Closure> pending_webui_callbacks_;
171 169
172 base::DefaultClock clock_; 170 base::DefaultClock clock_;
173 std::unique_ptr<SpeechRecognizer> speech_recognizer_; 171 std::unique_ptr<SpeechRecognizer> speech_recognizer_;
174 std::unique_ptr<SpeechAuthHelper> speech_auth_helper_; 172 std::unique_ptr<SpeechAuthHelper> speech_auth_helper_;
175 173
176 bool network_available_; 174 bool network_available_;
177 bool microphone_available_; 175 bool microphone_available_;
178 #if defined(OS_CHROMEOS)
179 std::unique_ptr<AudioStatus> audio_status_; 176 std::unique_ptr<AudioStatus> audio_status_;
180 #endif
181 std::unique_ptr<NetworkChangeObserver> network_change_observer_; 177 std::unique_ptr<NetworkChangeObserver> network_change_observer_;
182 178
183 bool search_engine_is_google_; 179 bool search_engine_is_google_;
184 std::unique_ptr<net::URLFetcher> doodle_fetcher_; 180 std::unique_ptr<net::URLFetcher> doodle_fetcher_;
185 net::BackoffEntry backoff_entry_; 181 net::BackoffEntry backoff_entry_;
186 182
187 base::WeakPtrFactory<StartPageService> weak_factory_; 183 base::WeakPtrFactory<StartPageService> weak_factory_;
188 184
189 DISALLOW_COPY_AND_ASSIGN(StartPageService); 185 DISALLOW_COPY_AND_ASSIGN(StartPageService);
190 }; 186 };
191 187
192 } // namespace app_list 188 } // namespace app_list
193 189
194 #endif // CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ 190 #endif // CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/search/search_controller_factory.cc ('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