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