| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_FACTORY_H_ |
| 6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_FACTORY_H_ | 6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_FACTORY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 class TabContents; | 9 class TabContentsWrapper; |
| 10 class WebIntentPicker; | 10 class WebIntentPicker; |
| 11 class WebIntentPickerDelegate; | 11 class WebIntentPickerDelegate; |
| 12 | 12 |
| 13 // Interface to create and close the WebIntentPicker UI. | 13 // Interface to create and close the WebIntentPicker UI. |
| 14 class WebIntentPickerFactory { | 14 class WebIntentPickerFactory { |
| 15 public: | 15 public: |
| 16 virtual ~WebIntentPickerFactory() {} | 16 virtual ~WebIntentPickerFactory() {} |
| 17 | 17 |
| 18 // Creates a new WebIntentPicker. The picker is owned by the factory. | 18 // Creates a new WebIntentPicker. The picker is owned by the factory. |
| 19 virtual WebIntentPicker* Create(TabContents* tab_contents, | 19 virtual WebIntentPicker* Create(TabContentsWrapper* tab_contents, |
| 20 WebIntentPickerDelegate* delegate) = 0; | 20 WebIntentPickerDelegate* delegate) = 0; |
| 21 | 21 |
| 22 // Closes and destroys the picker. | 22 // Closes and destroys the picker. |
| 23 virtual void ClosePicker(WebIntentPicker* picker) = 0; | 23 virtual void ClosePicker(WebIntentPicker* picker) = 0; |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_FACTORY_H_ | 26 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_FACTORY_H_ |
| OLD | NEW |