Add blink::Platform methods needed by PeerConnectionDependencyFactory (1/2)

... when|h gets Onion soup'ed.

Namely, the methods are:

- GetWebRTCMediaPermission()
- GetWebRTCRendererPreferences()

In order to test the code being added right away, the CL also
routes the callsite through the newly added methods.

The CL eliminates the needs for
PeerConnectionDependencyFactory::CreatePortAllocator(), to reference
RenderFrameImpl and RenderViewImpl directly.

In a follow up CL, further methods will be added to replace the remaining
references to base::CommandLine & switches.


Change-Id: Ia897d304a21395c89fb032a4bfc80ec1a82ff858
Commit-Queue: Antonio Gomes <>
Reviewed-by: Guido Urdaneta <>
Reviewed-by: Kentaro Hara <>
Cr-Commit-Position: refs/heads/master@{#696097}
4 files changed