#ifndef ANDROID_WEBVIEW_RENDERER_AW_PERMISSION_CLIENT_H_
#define ANDROID_WEBVIEW_RENDERER_AW_PERMISSION_CLIENT_H_
#include "content/public/renderer/render_frame_observer.h"
#include "third_party/WebKit/public/web/WebPermissionClient.h"
namespace android_webview {
class AwPermissionClient : public content::RenderFrameObserver,
public blink::WebPermissionClient {
public:
explicit AwPermissionClient(content::RenderFrame* render_view);
private:
virtual ~AwPermissionClient();
virtual bool allowDisplayingInsecureContent(
blink::WebFrame* frame,
bool enabled_per_settings,
const blink::WebSecurityOrigin& origin,
const blink::WebURL& url) OVERRIDE;
virtual bool allowRunningInsecureContent(
blink::WebFrame* frame,
bool enabled_per_settings,
const blink::WebSecurityOrigin& origin,
const blink::WebURL& url) OVERRIDE;
virtual bool allowDisplayingInsecureContent(
bool enabled_per_settings,
const blink::WebSecurityOrigin& origin,
const blink::WebURL& url);
virtual bool allowRunningInsecureContent(
bool enabled_per_settings,
const blink::WebSecurityOrigin& origin,
const blink::WebURL& url);
DISALLOW_COPY_AND_ASSIGN(AwPermissionClient);
};
}
#endif