#ifndef LIBRARIES_NACL_IO_PEPPER_INTERFACE_DELEGATE_H_
#define LIBRARIES_NACL_IO_PEPPER_INTERFACE_DELEGATE_H_
#include "nacl_io/pepper_interface.h"
namespace nacl_io {
class PepperInterfaceDelegate : public PepperInterface {
public:
explicit PepperInterfaceDelegate(PP_Instance instance);
virtual ~PepperInterfaceDelegate();
virtual PP_Instance GetInstance();
#include "nacl_io/pepper/undef_macros.h"
#include "nacl_io/pepper/define_empty_macros.h"
#undef BEGIN_INTERFACE
#define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \
virtual BaseClass* Get##BaseClass();
#include "nacl_io/pepper/all_interfaces.h"
#include "nacl_io/pepper/undef_macros.h"
#include "nacl_io/pepper/define_empty_macros.h"
#undef BEGIN_INTERFACE
#define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \
void Set##BaseClass##Delegate(BaseClass* delegate);
#include "nacl_io/pepper/all_interfaces.h"
private:
PP_Instance instance_;
#include "nacl_io/pepper/undef_macros.h"
#include "nacl_io/pepper/define_empty_macros.h"
#undef BEGIN_INTERFACE
#define BEGIN_INTERFACE(BaseClass, PPInterface, InterfaceString) \
BaseClass* BaseClass##delegate_;
#include "nacl_io/pepper/all_interfaces.h"
};
}
#endif