blob: b614c4fe484b426b6e23489aac1a1a6f1a2e0128 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_FACTORY_H_
#define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_FACTORY_H_
#pragma once
class Browser;
class TabContentsWrapper;
class WebIntentPicker;
class WebIntentPickerDelegate;
// Interface to create and close the WebIntentPicker UI.
class WebIntentPickerFactory {
public:
virtual ~WebIntentPickerFactory() {}
// Creates a new WebIntentPicker. The picker is owned by the factory.
virtual WebIntentPicker* Create(Browser* browser,
TabContentsWrapper* tab_contents,
WebIntentPickerDelegate* delegate) = 0;
// Closes and destroys the picker.
virtual void ClosePicker(WebIntentPicker* picker) = 0;
};
#endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_FACTORY_H_
|