diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-08-31 17:12:37 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-11-29 08:36:51 +0000 |
commit | 05574185dab53476294cf62f2067a4147aa0b6eb (patch) | |
tree | d5117bbae4b3a4417173d6c969640e79c130b587 /src/core/web_engine_settings.h | |
parent | 5480a26d2f16dacfbce47da337559b5bcfb3d45e (diff) |
Expose an option to hide internal IP addresses from WebRTC
Task-number: QTBUG-57505
Change-Id: I8d8f906311ce94b2d9df67cb4479b70c8961c3a6
Reviewed-by: Viktor Engelmann <viktor.engelmann@qt.io>
Diffstat (limited to 'src/core/web_engine_settings.h')
-rw-r--r-- | src/core/web_engine_settings.h | 6 |
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; |