summaryrefslogtreecommitdiffstats
path: root/src/core/web_engine_settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/web_engine_settings.h')
-rw-r--r--src/core/web_engine_settings.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/web_engine_settings.h b/src/core/web_engine_settings.h
index 5881303a2..06e6ac59c 100644
--- a/src/core/web_engine_settings.h
+++ b/src/core/web_engine_settings.h
@@ -48,6 +48,8 @@
#include <QSet>
namespace content {
+struct RendererPreferences;
+class WebContents;
struct WebPreferences;
}
namespace QtWebEngineCore {
@@ -87,6 +89,7 @@ public:
AllowWindowActivationFromJavaScript,
ShowScrollBars,
PlaybackRequiresUserGesture,
+ WebRTCPublicInterfacesOnly,
};
// Must match the values from the public API in qwebenginesettings.h.
@@ -121,7 +124,7 @@ public:
void setParentSettings(WebEngineSettings *parentSettings);
- void overrideWebPreferences(content::WebPreferences *prefs);
+ void overrideWebPreferences(content::WebContents *webContents, content::WebPreferences *prefs);
void setAttribute(Attribute, bool on);
bool testAttribute(Attribute) const;
@@ -152,6 +155,7 @@ public:
private:
void doApply();
void applySettingsToWebPreferences(content::WebPreferences *);
+ bool applySettingsToRendererPreferences(content::RendererPreferences *);
void setWebContentsAdapter(WebContentsAdapter *adapter) { m_adapter = adapter; }
WebContentsAdapter* m_adapter;