#ifndef CHROME_BROWSER_UI_SEARCH_ENGINES_TEMPLATE_URL_FETCHER_UI_CALLBACKS_H_
#define CHROME_BROWSER_UI_SEARCH_ENGINES_TEMPLATE_URL_FETCHER_UI_CALLBACKS_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "chrome/browser/search_engines/template_url_fetcher_callbacks.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
class SearchEngineTabHelper;
namespace content {
class WebContents;
}
class TemplateURLFetcherUICallbacks : public TemplateURLFetcherCallbacks,
public content::NotificationObserver {
public:
TemplateURLFetcherUICallbacks(SearchEngineTabHelper* tab_helper,
content::WebContents* web_contents);
virtual ~TemplateURLFetcherUICallbacks();
virtual void ConfirmAddSearchProvider(TemplateURL* template_url,
Profile* profile) OVERRIDE;
virtual void Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
private:
SearchEngineTabHelper* source_;
content::WebContents* web_contents_;
content::NotificationRegistrar registrar_;
DISALLOW_COPY_AND_ASSIGN(TemplateURLFetcherUICallbacks);
};
#endif