OLD | NEW |
(Empty) | |
| 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 ANDROID_WEBVIEW_RENDERER_AW_PERMISSION_CLIENT_H_ |
| 6 #define ANDROID_WEBVIEW_RENDERER_AW_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 android_webview { |
| 12 |
| 13 // Android WebView implementation of blink::WebPermissionClient. |
| 14 class AwPermissionClient : public content::RenderFrameObserver, |
| 15 public blink::WebPermissionClient { |
| 16 public: |
| 17 explicit AwPermissionClient(content::RenderFrame* render_view); |
| 18 |
| 19 private: |
| 20 virtual ~AwPermissionClient(); |
| 21 |
| 22 // content::RenderFrameObserver implementation. |
| 23 virtual void WebFrameCreated(blink::WebFrame* frame) OVERRIDE; |
| 24 |
| 25 // blink::WebPermissionClient implementation. |
| 26 virtual bool allowDisplayingInsecureContent( |
| 27 blink::WebFrame* frame, |
| 28 bool enabled_per_settings, |
| 29 const blink::WebSecurityOrigin& origin, |
| 30 const blink::WebURL& url) OVERRIDE; |
| 31 virtual bool allowRunningInsecureContent( |
| 32 blink::WebFrame* frame, |
| 33 bool enabled_per_settings, |
| 34 const blink::WebSecurityOrigin& origin, |
| 35 const blink::WebURL& url) OVERRIDE; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(AwPermissionClient); |
| 38 }; |
| 39 |
| 40 } // namespace android_webview |
| 41 |
| 42 #endif // ANDROID_WEBVIEW_RENDERER_AW_PERMISSION_CLIENT_H_ |
OLD | NEW |