Bug 1286662 - Add native methods for GeckoNetworkManager notifications; r=snorp

Add and use onConnectionChanged and onStatusChanged native methods in
GeckoNetworkManager in place of the network events in GeckoEvent.
This commit is contained in:
Jim Chen
2016-07-20 21:44:48 -04:00
parent f2ef5ea3a0
commit 3ce5e25d0d
3 changed files with 102 additions and 17 deletions

View File

@@ -61,6 +61,7 @@
#endif
#include "ANRReporter.h"
#include "GeckoNetworkManager.h"
#include "PrefsHelper.h"
#ifdef DEBUG_ANDROID_EVENTS
@@ -385,6 +386,7 @@ nsAppShell::nsAppShell()
GeckoAppShellSupport::Init();
GeckoThreadSupport::Init();
mozilla::ANRReporter::Init();
mozilla::GeckoNetworkManager::Init();
mozilla::PrefsHelper::Init();
nsWindow::InitNatives();