--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
1. When users choose to use defualt route only (by setting an existing preference webrtc:enable_multiple_routes to false), I want to make sure only no real interface information is passed by P2PSocketDispatcherHost to renderer process.2. When users choose not to use UDP through a new preference I'm adding (as it could leak their IP address when using proxy), I'd like to stop all UDP socket creation and the DNS resolution inside P2PSocketDispatcherHost.Thanks,GuoweiOn Mon, Aug 10, 2015 at 3:20 PM, Avi Drissman <a...@chromium.org> wrote:+jamWhat kind of behavior change were you thinking of?AviOn Mon, Aug 10, 2015 at 5:59 PM, Guo-wei Shieh <guo...@chromium.org> wrote:Hi,I want to access users preference to change some behavior of RenderProcessHostImpl (content). More specifically, I want to change the bahvior of P2PSocketDispatchHost which is a member of RPHI. Preference (and Profile) live in chrome/browser so it can't be included by content directly.It seems that I have 2 ways to go about this.1. RenderViewHostImpl has access to Preference. I could get the value from RenderViewHostImpl and set it to RenderProcessHostImpl everytime I have a new RenderViewHost. However, it's a 1:N relationship b/w RenderProcessHost to RenderViewHost though. (This is effectively getting it from WebContentsImpl)
2. I could also use content_browser_client.h which allows embedder like chrome to provide info to RenderProcessHostImpl.
On Mon, Aug 10, 2015 at 3:25 PM, Guo-wei Shieh <guo...@chromium.org> wrote:1. When users choose to use defualt route only (by setting an existing preference webrtc:enable_multiple_routes to false), I want to make sure only no real interface information is passed by P2PSocketDispatcherHost to renderer process.2. When users choose not to use UDP through a new preference I'm adding (as it could leak their IP address when using proxy), I'd like to stop all UDP socket creation and the DNS resolution inside P2PSocketDispatcherHost.Thanks,GuoweiOn Mon, Aug 10, 2015 at 3:20 PM, Avi Drissman <a...@chromium.org> wrote:+jamWhat kind of behavior change were you thinking of?AviOn Mon, Aug 10, 2015 at 5:59 PM, Guo-wei Shieh <guo...@chromium.org> wrote:Hi,I want to access users preference to change some behavior of RenderProcessHostImpl (content). More specifically, I want to change the bahvior of P2PSocketDispatchHost which is a member of RPHI. Preference (and Profile) live in chrome/browser so it can't be included by content directly.It seems that I have 2 ways to go about this.1. RenderViewHostImpl has access to Preference. I could get the value from RenderViewHostImpl and set it to RenderProcessHostImpl everytime I have a new RenderViewHost. However, it's a 1:N relationship b/w RenderProcessHost to RenderViewHost though. (This is effectively getting it from WebContentsImpl)Where is the code that will ultimately check these two settings? i.e. do they have a RenderViewHost or RenderView that they can get this setting from?
2. I could also use content_browser_client.h which allows embedder like chrome to provide info to RenderProcessHostImpl.For two booleans like this, generally we use RendererPreferences.