Castanets icon indicating copy to clipboard operation
Castanets copied to clipboard

Enable Network Service to run on renderer device without dependency on Network File System.

Open venumusham opened this issue 6 years ago • 4 comments

Cleanup debugging code which prints resource contents on output.

Signed-off-by: venu.musham [email protected]

venumusham avatar Jan 31 '19 10:01 venumusham

As a first step, this change should be rebased. And then, we need to think about file:// protocol file loading scenario. Currently, when file protocol url is entered in url bar, the file located in device running network service process is loaded.

I wonder whether it is possible to change the file protocol file's path to include browser process running device's ip before start loading, so url loader could load through it.

How do you think about, Madhav?

joonghunpark avatar Apr 30 '19 10:04 joonghunpark

  • Sure, Will push a rebase commit

  • For loading local file residing in browser process (device-A) from network process on device B. We might have to implement it by creating seperate tcp connection between browser and network process. We can submit this change in differnt CL.

venumusham avatar Apr 30 '19 11:04 venumusham

  • Rebase complete
  • With this CL, network loading will be enabled by default, three processes are needed to test
  1. device A: browser: $ out/Default/chrome --enable-castanets www.naver.com
  2. device B: renderer $ out/Default/chrome --enable-castanets=107.108.206.136 --type=renderer
  3. device C: utility(network) $ out/Default/chrome --enable-castanets=107.108.206.136 --type=utility

venumusham avatar May 21 '19 09:05 venumusham

Currently we will face some challenge when running network process on android.

  1. Processes are launched as activity on android. As i checked on M69, i. When we launch renderer on android, it starts a activity. ii. When we again launch utility on android, it kills the previous activity (renderer) and starts utility process (same behavior if we launch utility first and then renderer).
  2. Also shared memory is not file based in android as posix.

suyambulingamrm avatar May 21 '19 11:05 suyambulingamrm