Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / renderer / android / xwalk_permission_client.h
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.
4
5 #ifndef XWALK_RUNTIME_RENDERER_ANDROID_XWALK_PERMISSION_CLIENT_H_
6 #define XWALK_RUNTIME_RENDERER_ANDROID_XWALK_PERMISSION_CLIENT_H_
7
8 #include "content/public/renderer/render_frame_observer.h"
9 #include "third_party/WebKit/public/web/WebPermissionClient.h"
10
11 namespace xwalk {
12
13 // XWalk implementation of blink::WebPermissionClient.
14 class XWalkPermissionClient : public content::RenderFrameObserver,
15                               public blink::WebPermissionClient {
16  public:
17   explicit XWalkPermissionClient(content::RenderFrame* render_view);
18
19  private:
20   virtual ~XWalkPermissionClient();
21
22   // blink::WebPermissionClient implementation.
23   bool allowImage(bool enabledPerSettings,
24                           const blink::WebURL& imageURL) override;
25
26   DISALLOW_COPY_AND_ASSIGN(XWalkPermissionClient);
27 };
28
29 }  // namespace xwalk
30
31 #endif  // XWALK_RUNTIME_RENDERER_ANDROID_XWALK_PERMISSION_CLIENT_H_