#ifndef PPAPI_HOST_INSTANCE_MESSAGE_FILTER_H_
#define PPAPI_HOST_INSTANCE_MESSAGE_FILTER_H_
#include "base/basictypes.h"
#include "ppapi/host/ppapi_host_export.h"
namespace IPC {
class Message;
}
namespace ppapi {
namespace host {
class PpapiHost;
class PPAPI_HOST_EXPORT InstanceMessageFilter {
public:
explicit InstanceMessageFilter(PpapiHost* host);
virtual ~InstanceMessageFilter();
virtual bool OnInstanceMessageReceived(const IPC::Message& msg) = 0;
PpapiHost* host() { return host_; }
private:
PpapiHost* host_;
DISALLOW_COPY_AND_ASSIGN(InstanceMessageFilter);
};
}
}
#endif