| OLD | NEW |
| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 // net::URLFetcherDelegate overrides: | 135 // net::URLFetcherDelegate overrides: |
| 136 void OnURLFetchComplete(const net::URLFetcher* source) override; | 136 void OnURLFetchComplete(const net::URLFetcher* source) override; |
| 137 | 137 |
| 138 // KeyedService overrides: | 138 // KeyedService overrides: |
| 139 void Shutdown() override; | 139 void Shutdown() override; |
| 140 | 140 |
| 141 // contents::WebContentsObserver overrides; | 141 // contents::WebContentsObserver overrides; |
| 142 void DidNavigateMainFrame( | 142 void DidNavigateMainFrame( |
| 143 const content::LoadCommittedDetails& details, | 143 const content::LoadCommittedDetails& details, |
| 144 const content::FrameNavigateParams& params) override; | 144 const content::FrameNavigateParams& params) override; |
| 145 void RenderProcessGone(base::TerminationStatus status) override; |
| 146 |
| 145 | 147 |
| 146 // Change the known microphone availability. |available| should be true if | 148 // Change the known microphone availability. |available| should be true if |
| 147 // the microphone exists and is available for use. | 149 // the microphone exists and is available for use. |
| 148 void OnMicrophoneChanged(bool available); | 150 void OnMicrophoneChanged(bool available); |
| 149 // Change the known network connectivity state. |available| should be true if | 151 // Change the known network connectivity state. |available| should be true if |
| 150 // at least one network is connected to. | 152 // at least one network is connected to. |
| 151 void OnNetworkChanged(bool available); | 153 void OnNetworkChanged(bool available); |
| 152 // Enables/disables voice recognition based on network and microphone state. | 154 // Enables/disables voice recognition based on network and microphone state. |
| 153 void UpdateRecognitionState(); | 155 void UpdateRecognitionState(); |
| 154 | 156 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 179 scoped_ptr<net::URLFetcher> doodle_fetcher_; | 181 scoped_ptr<net::URLFetcher> doodle_fetcher_; |
| 180 | 182 |
| 181 base::WeakPtrFactory<StartPageService> weak_factory_; | 183 base::WeakPtrFactory<StartPageService> weak_factory_; |
| 182 | 184 |
| 183 DISALLOW_COPY_AND_ASSIGN(StartPageService); | 185 DISALLOW_COPY_AND_ASSIGN(StartPageService); |
| 184 }; | 186 }; |
| 185 | 187 |
| 186 } // namespace app_list | 188 } // namespace app_list |
| 187 | 189 |
| 188 #endif // CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ | 190 #endif // CHROME_BROWSER_UI_APP_LIST_START_PAGE_SERVICE_H_ |
| OLD | NEW |