| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 // Called when WebIntentServiceData is ready for checking extensions | 160 // Called when WebIntentServiceData is ready for checking extensions |
| 161 // when dispatching explicit intents. Gets |services| | 161 // when dispatching explicit intents. Gets |services| |
| 162 // from the WebIntentsRegistry to check for known urls/extensions and find | 162 // from the WebIntentsRegistry to check for known urls/extensions and find |
| 163 // disposition data. | 163 // disposition data. |
| 164 void WebIntentServicesForExplicitIntent( | 164 void WebIntentServicesForExplicitIntent( |
| 165 const std::vector<webkit_glue::WebIntentServiceData>& services); | 165 const std::vector<webkit_glue::WebIntentServiceData>& services); |
| 166 | 166 |
| 167 // Called when FaviconData is returned from the FaviconService. | 167 // Called when FaviconData is returned from the FaviconService. |
| 168 void OnFaviconDataAvailable(FaviconService::Handle handle, | 168 void OnFaviconDataAvailable(FaviconService::Handle handle, |
| 169 history::FaviconData favicon_data); | 169 history::FaviconData favicon_data, |
| 170 std::vector<GURL> icon_urls_in_db); |
| 170 | 171 |
| 171 // Called when IntentExtensionInfo is returned from the CWSIntentsRegistry. | 172 // Called when IntentExtensionInfo is returned from the CWSIntentsRegistry. |
| 172 void OnCWSIntentServicesAvailable( | 173 void OnCWSIntentServicesAvailable( |
| 173 const CWSIntentsRegistry::IntentExtensionList& extensions); | 174 const CWSIntentsRegistry::IntentExtensionList& extensions); |
| 174 | 175 |
| 175 // Called when a suggested extension's icon is fetched. | 176 // Called when a suggested extension's icon is fetched. |
| 176 void OnExtensionIconURLFetchComplete(const string16& extension_id, | 177 void OnExtensionIconURLFetchComplete(const string16& extension_id, |
| 177 const net::URLFetcher* source); | 178 const net::URLFetcher* source); |
| 178 | 179 |
| 179 // Called whenever intent data (both from registry and CWS) arrives. | 180 // Called whenever intent data (both from registry and CWS) arrives. |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 | 267 |
| 267 base::WeakPtrFactory<WebIntentPickerController> weak_ptr_factory_; | 268 base::WeakPtrFactory<WebIntentPickerController> weak_ptr_factory_; |
| 268 | 269 |
| 269 // Timer factory for minimum display time of "waiting" dialog. | 270 // Timer factory for minimum display time of "waiting" dialog. |
| 270 base::WeakPtrFactory<WebIntentPickerController> timer_factory_; | 271 base::WeakPtrFactory<WebIntentPickerController> timer_factory_; |
| 271 | 272 |
| 272 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerController); | 273 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerController); |
| 273 }; | 274 }; |
| 274 | 275 |
| 275 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ | 276 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ |
| OLD | NEW |