#ifndef WebPermissionCallbacks_h
#define WebPermissionCallbacks_h
#include "WebPrivatePtr.h"
namespace WebCore {
class PermissionCallbacks;
}
namespace WTF { template <typename T> class PassOwnPtr; }
namespace blink {
class WebPermissionCallbacksPrivate;
class WebPermissionCallbacks {
public:
~WebPermissionCallbacks() { reset(); }
WebPermissionCallbacks() { }
WebPermissionCallbacks(const WebPermissionCallbacks& c) { assign(c); }
WebPermissionCallbacks& operator=(const WebPermissionCallbacks& c)
{
assign(c);
return *this;
}
BLINK_PLATFORM_EXPORT void reset();
BLINK_PLATFORM_EXPORT void assign(const WebPermissionCallbacks&);
#if INSIDE_BLINK
BLINK_PLATFORM_EXPORT WebPermissionCallbacks(const WTF::PassOwnPtr<WebCore::PermissionCallbacks>&);
#endif
BLINK_PLATFORM_EXPORT void doAllow();
BLINK_PLATFORM_EXPORT void doDeny();
private:
WebPrivatePtr<WebPermissionCallbacksPrivate> m_private;
};
}
#endif