1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef XWALK_RUNTIME_RENDERER_ANDROID_XWALK_PERMISSION_CLIENT_H_
6 #define XWALK_RUNTIME_RENDERER_ANDROID_XWALK_PERMISSION_CLIENT_H_
8 #include "content/public/renderer/render_frame_observer.h"
9 #include "third_party/WebKit/public/web/WebPermissionClient.h"
13 // XWalk implementation of blink::WebPermissionClient.
14 class XWalkPermissionClient : public content::RenderFrameObserver,
15 public blink::WebPermissionClient {
17 explicit XWalkPermissionClient(content::RenderFrame* render_view);
20 virtual ~XWalkPermissionClient();
22 // blink::WebPermissionClient implementation.
23 virtual bool allowImage(bool enabledPerSettings,
24 const blink::WebURL& imageURL) OVERRIDE;
26 DISALLOW_COPY_AND_ASSIGN(XWalkPermissionClient);
31 #endif // XWALK_RUNTIME_RENDERER_ANDROID_XWALK_PERMISSION_CLIENT_H_