#ifndef CHROME_RENDERER_EXTENSIONS_TAB_FINDER_H_
#define CHROME_RENDERER_EXTENSIONS_TAB_FINDER_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "content/public/renderer/render_view_visitor.h"
namespace content {
class RenderView;
}
namespace extensions {
class TabFinder : public content::RenderViewVisitor {
public:
static content::RenderView* Find(int tab_id);
private:
explicit TabFinder(int tab_id);
virtual ~TabFinder();
virtual bool Visit(content::RenderView* render_view) OVERRIDE;
int tab_id_;
content::RenderView* view_;
DISALLOW_COPY_AND_ASSIGN(TabFinder);
};
}
#endif