#ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_OMNIBOX_PROVIDER_H_
#define CHROME_BROWSER_UI_APP_LIST_SEARCH_OMNIBOX_PROVIDER_H_
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/autocomplete/autocomplete_controller_delegate.h"
#include "chrome/browser/ui/app_list/search/search_provider.h"
class AutocompleteController;
class AutocompleteResult;
class Profile;
namespace app_list {
class OmniboxProvider : public SearchProvider,
public AutocompleteControllerDelegate {
public:
explicit OmniboxProvider(Profile* profile);
virtual ~OmniboxProvider();
virtual void Start(const base::string16& query) OVERRIDE;
virtual void Stop() OVERRIDE;
private:
void PopulateFromACResult(const AutocompleteResult& result);
virtual void OnResultChanged(bool default_match_changed) OVERRIDE;
Profile* profile_;
scoped_ptr<AutocompleteController> controller_;
DISALLOW_COPY_AND_ASSIGN(OmniboxProvider);
};
}
#endif