#ifndef CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BROWSERTEST_UTIL_H_
#define CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BROWSERTEST_UTIL_H_
#include "base/basictypes.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
class RenderViewContextMenu;
class ContextMenuNotificationObserver : public content::NotificationObserver {
public:
explicit ContextMenuNotificationObserver(int command_to_execute);
virtual ~ContextMenuNotificationObserver();
private:
virtual void Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
void ExecuteCommand(RenderViewContextMenu* context_menu);
content::NotificationRegistrar registrar_;
int command_to_execute_;
DISALLOW_COPY_AND_ASSIGN(ContextMenuNotificationObserver);
};
#endif