OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_PERMISSION_CLIENT_H_ | 5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_PERMISSION_CLIENT_H_ |
6 #define ANDROID_WEBVIEW_RENDERER_AW_PERMISSION_CLIENT_H_ | 6 #define ANDROID_WEBVIEW_RENDERER_AW_PERMISSION_CLIENT_H_ |
7 | 7 |
8 #include "content/public/renderer/render_frame_observer.h" | 8 #include "content/public/renderer/render_frame_observer.h" |
9 #include "third_party/WebKit/public/web/WebPermissionClient.h" | 9 #include "third_party/WebKit/public/web/WebPermissionClient.h" |
10 | 10 |
11 namespace android_webview { | 11 namespace android_webview { |
12 | 12 |
13 // Android WebView implementation of blink::WebPermissionClient. | 13 // Android WebView implementation of blink::WebPermissionClient. |
14 class AwPermissionClient : public content::RenderFrameObserver, | 14 class AwPermissionClient : public content::RenderFrameObserver, |
15 public blink::WebPermissionClient { | 15 public blink::WebPermissionClient { |
16 public: | 16 public: |
17 explicit AwPermissionClient(content::RenderFrame* render_view); | 17 explicit AwPermissionClient(content::RenderFrame* render_view); |
18 | 18 |
19 private: | 19 private: |
20 virtual ~AwPermissionClient(); | 20 virtual ~AwPermissionClient(); |
21 | 21 |
22 // blink::WebPermissionClient implementation. | 22 // blink::WebPermissionClient implementation. |
| 23 // TODO(jam): remove all these methods after Blink rolls. |
23 virtual bool allowDisplayingInsecureContent( | 24 virtual bool allowDisplayingInsecureContent( |
24 blink::WebFrame* frame, | 25 blink::WebFrame* frame, |
25 bool enabled_per_settings, | 26 bool enabled_per_settings, |
26 const blink::WebSecurityOrigin& origin, | 27 const blink::WebSecurityOrigin& origin, |
27 const blink::WebURL& url) OVERRIDE; | 28 const blink::WebURL& url) OVERRIDE; |
28 virtual bool allowRunningInsecureContent( | 29 virtual bool allowRunningInsecureContent( |
29 blink::WebFrame* frame, | 30 blink::WebFrame* frame, |
30 bool enabled_per_settings, | 31 bool enabled_per_settings, |
31 const blink::WebSecurityOrigin& origin, | 32 const blink::WebSecurityOrigin& origin, |
32 const blink::WebURL& url) OVERRIDE; | 33 const blink::WebURL& url) OVERRIDE; |
33 | 34 |
| 35 virtual bool allowDisplayingInsecureContent( |
| 36 bool enabled_per_settings, |
| 37 const blink::WebSecurityOrigin& origin, |
| 38 const blink::WebURL& url) OVERRIDE; |
| 39 virtual bool allowRunningInsecureContent( |
| 40 bool enabled_per_settings, |
| 41 const blink::WebSecurityOrigin& origin, |
| 42 const blink::WebURL& url) OVERRIDE; |
| 43 |
34 DISALLOW_COPY_AND_ASSIGN(AwPermissionClient); | 44 DISALLOW_COPY_AND_ASSIGN(AwPermissionClient); |
35 }; | 45 }; |
36 | 46 |
37 } // namespace android_webview | 47 } // namespace android_webview |
38 | 48 |
39 #endif // ANDROID_WEBVIEW_RENDERER_AW_PERMISSION_CLIENT_H_ | 49 #endif // ANDROID_WEBVIEW_RENDERER_AW_PERMISSION_CLIENT_H_ |
OLD | NEW |