OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // default choices allow it to be skipped. | 160 // default choices allow it to be skipped. |
161 void RegistryCallsCompleted(); | 161 void RegistryCallsCompleted(); |
162 | 162 |
163 // Called when WebIntentServiceData is ready for checking extensions | 163 // Called when WebIntentServiceData is ready for checking extensions |
164 // when dispatching explicit intents. Gets |services| | 164 // when dispatching explicit intents. Gets |services| |
165 // from the WebIntentsRegistry to check for known urls/extensions and find | 165 // from the WebIntentsRegistry to check for known urls/extensions and find |
166 // disposition data. | 166 // disposition data. |
167 void WebIntentServicesForExplicitIntent( | 167 void WebIntentServicesForExplicitIntent( |
168 const std::vector<webkit_glue::WebIntentServiceData>& services); | 168 const std::vector<webkit_glue::WebIntentServiceData>& services); |
169 | 169 |
170 // Called when FaviconData is returned from the FaviconService. | 170 // Called when a favicon is returned from the FaviconService. |
171 void OnFaviconDataAvailable(FaviconService::Handle handle, | 171 void OnFaviconDataAvailable( |
172 history::FaviconData favicon_data); | 172 FaviconService::Handle handle, |
| 173 const history::FaviconImageResult& image_result); |
173 | 174 |
174 // Called when IntentExtensionInfo is returned from the CWSIntentsRegistry. | 175 // Called when IntentExtensionInfo is returned from the CWSIntentsRegistry. |
175 void OnCWSIntentServicesAvailable( | 176 void OnCWSIntentServicesAvailable( |
176 const CWSIntentsRegistry::IntentExtensionList& extensions); | 177 const CWSIntentsRegistry::IntentExtensionList& extensions); |
177 | 178 |
178 // Called when a suggested extension's icon is fetched. | 179 // Called when a suggested extension's icon is fetched. |
179 void OnExtensionIconURLFetchComplete(const string16& extension_id, | 180 void OnExtensionIconURLFetchComplete(const string16& extension_id, |
180 const net::URLFetcher* source); | 181 const net::URLFetcher* source); |
181 | 182 |
182 // Called whenever intent data (both from registry and CWS) arrives. | 183 // Called whenever intent data (both from registry and CWS) arrives. |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | 273 |
273 base::WeakPtrFactory<WebIntentPickerController> weak_ptr_factory_; | 274 base::WeakPtrFactory<WebIntentPickerController> weak_ptr_factory_; |
274 | 275 |
275 // Timer factory for minimum display time of "waiting" dialog. | 276 // Timer factory for minimum display time of "waiting" dialog. |
276 base::WeakPtrFactory<WebIntentPickerController> timer_factory_; | 277 base::WeakPtrFactory<WebIntentPickerController> timer_factory_; |
277 | 278 |
278 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerController); | 279 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerController); |
279 }; | 280 }; |
280 | 281 |
281 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ | 282 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ |
OLD | NEW |