Hello b2g! I am attempting to access NetworkStatsManager.getSamples() from within my own XPCOM component. Here is my current code: https://zeller.pastebin.mozilla.org/8825742
On line 162, the function isNowGood() will be the only thing exposed to web content. I need access to NetworkStatsManager.getSamples(), specifically to get the rx/tx data history for the device. The problem is that I am not sure how to do this. Speaking with fabrice in #b2g today, he advised me that I should use my own parent side module, and talk to other parent side modules. I am new to the parent/child abstraction in Gecko, so I am not 100% how to proceed here. Previous advice I received suggested that I use IPC via cpmm.sendAsyncMessage, which you will see on line 108 in my code above. So what are the next steps here? I am not sure how to go about achieving this messaging. Is code running from my init function considered to be running in my own parent side module? Is NetworkStatsManager.js the code running in the other parent side module I am seeking to achieve this? Forgive the novice-y questions, I am trying desperately to wrap my head around this. _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
