#ifndef CHROME_BROWSER_EXTENSIONS_API_TOP_SITES_TOP_SITES_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_TOP_SITES_TOP_SITES_API_H_
#include "base/memory/weak_ptr.h"
#include "chrome/browser/extensions/chrome_extension_function.h"
#include "chrome/browser/history/history_types.h"
namespace extensions {
class TopSitesGetFunction : public ChromeAsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("topSites.get", TOPSITES_GET)
TopSitesGetFunction();
protected:
virtual ~TopSitesGetFunction();
virtual bool RunImpl() OVERRIDE;
private:
void OnMostVisitedURLsAvailable(const history::MostVisitedURLList& data);
base::WeakPtrFactory<TopSitesGetFunction> weak_ptr_factory_;
};
}
#endif