blob: e3a4bfa00262ca84b1a7b35756ef0fac853ecd6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#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 {
// Android WebView implementation of blink::WebPermissionClient.
class AwPermissionClient : public content::RenderFrameObserver,
public blink::WebPermissionClient {
public:
explicit AwPermissionClient(content::RenderFrame* render_view);
private:
virtual ~AwPermissionClient();
// blink::WebPermissionClient implementation.
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);
};
} // namespace android_webview
#endif // ANDROID_WEBVIEW_RENDERER_AW_PERMISSION_CLIENT_H_
|