#ifndef CHROME_RENDERER_EXTENSIONS_CHROME_V8_EXTENSION_HANDLER_H_
#define CHROME_RENDERER_EXTENSIONS_CHROME_V8_EXTENSION_HANDLER_H_
#include <string>
#include "base/basictypes.h"
#include "ipc/ipc_listener.h"
#include "v8/include/v8.h"
namespace extensions {
class ChromeV8Context;
class ChromeV8ExtensionHandler : public IPC::Listener {
public:
virtual ~ChromeV8ExtensionHandler();
virtual bool OnMessageReceived(const IPC::Message& message) = 0;
protected:
explicit ChromeV8ExtensionHandler(ChromeV8Context* context);
int GetRoutingID();
void Send(IPC::Message* message);
ChromeV8Context* context_;
private:
int routing_id_;
DISALLOW_COPY_AND_ASSIGN(ChromeV8ExtensionHandler);
};
}
#endif