| Index: android_webview/renderer/aw_render_view_ext.h
|
| diff --git a/android_webview/renderer/aw_render_view_ext.h b/android_webview/renderer/aw_render_view_ext.h
|
| index fa58872d2e9f5cea81cae2219232382b048261ec..fadb457642d6fc93d15e59fbaa24b4f970a3b5c4 100644
|
| --- a/android_webview/renderer/aw_render_view_ext.h
|
| +++ b/android_webview/renderer/aw_render_view_ext.h
|
| @@ -8,13 +8,21 @@
|
| #include "base/basictypes.h"
|
| #include "base/compiler_specific.h"
|
| #include "content/public/renderer/render_view_observer.h"
|
| +#include "third_party/WebKit/Source/WebKit/chromium/public/WebPermissionClient.h"
|
| +
|
| +namespace WebKit {
|
| +
|
| +class WebURL;
|
| +
|
| +} // namespace WebKit
|
|
|
| namespace android_webview {
|
|
|
| // Render process side of AwRenderViewHostExt, this provides cross-process
|
| // implementation of miscellaneous WebView functions that we need to poke
|
| // WebKit directly to implement (and that aren't needed in the chrome app).
|
| -class AwRenderViewExt : public content::RenderViewObserver {
|
| +class AwRenderViewExt : public content::RenderViewObserver,
|
| + public WebKit::WebPermissionClient {
|
| public:
|
| static void RenderViewCreated(content::RenderView* render_view);
|
|
|
| @@ -27,6 +35,11 @@ class AwRenderViewExt : public content::RenderViewObserver {
|
|
|
| void OnDocumentHasImagesRequest(int id);
|
|
|
| + // WebKit::WebPermissionClient implementation.
|
| + virtual bool allowImage(WebKit::WebFrame* frame,
|
| + bool enabledPerSettings,
|
| + const WebKit::WebURL& imageURL);
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt);
|
| };
|
|
|
|
|