[sql] Disable worker-thread code in SQLite.
[chromium-blink-merge.git] / android_webview / renderer / aw_content_settings_client.h
blob5d44551858ea8d80d386dc1411c27eae045789ca
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.
5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_CONTENT_SETTINGS_CLIENT_H_
6 #define ANDROID_WEBVIEW_RENDERER_AW_CONTENT_SETTINGS_CLIENT_H_
8 #include "content/public/renderer/render_frame_observer.h"
9 #include "third_party/WebKit/public/web/WebContentSettingsClient.h"
11 namespace android_webview {
13 // Android WebView implementation of blink::WebContentSettingsClient.
14 class AwContentSettingsClient : public content::RenderFrameObserver,
15 public blink::WebContentSettingsClient {
16 public:
17 explicit AwContentSettingsClient(content::RenderFrame* render_view);
19 private:
20 ~AwContentSettingsClient() override;
22 // blink::WebContentSettingsClient implementation.
23 virtual bool allowDisplayingInsecureContent(
24 bool enabled_per_settings,
25 const blink::WebSecurityOrigin& origin,
26 const blink::WebURL& url);
27 virtual bool allowRunningInsecureContent(
28 bool enabled_per_settings,
29 const blink::WebSecurityOrigin& origin,
30 const blink::WebURL& url);
32 DISALLOW_COPY_AND_ASSIGN(AwContentSettingsClient);
35 } // namespace android_webview
37 #endif // ANDROID_WEBVIEW_RENDERER_AW_CONTENT_SETTINGS_CLIENT_H_