зеркало из https://github.com/mozilla/gecko-dev.git
Bug 587414 - e10s: Geolocation needs to set pref from content process. r=jdm a=blocking-fennec
This commit is contained in:
Родитель
5f9e9c9878
Коммит
71eea0fe26
|
@ -505,5 +505,11 @@ ContentChild::RecvAsyncMessage(const nsString& aMsg, const nsString& aJSON)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
ContentChild::RecvGeolocationUpdate(const GeoPosition& somewhere)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
|
|
@ -119,6 +119,8 @@ public:
|
|||
|
||||
virtual bool RecvAsyncMessage(const nsString& aMsg, const nsString& aJSON);
|
||||
|
||||
virtual bool RecvGeolocationUpdate(const GeoPosition& somewhere);
|
||||
|
||||
private:
|
||||
NS_OVERRIDE
|
||||
virtual void ActorDestroy(ActorDestroyReason why);
|
||||
|
|
|
@ -616,7 +616,6 @@ ContentParent::RecvSyncMessage(const nsString& aMsg, const nsString& aJSON,
|
|||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
ContentParent::RecvAsyncMessage(const nsString& aMsg, const nsString& aJSON)
|
||||
{
|
||||
|
@ -627,6 +626,18 @@ ContentParent::RecvAsyncMessage(const nsString& aMsg, const nsString& aJSON)
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
ContentParent::RecvGeolocationStart()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
ContentParent::RecvGeolocationStop()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
|
|
@ -178,6 +178,9 @@ private:
|
|||
nsTArray<nsString>* aRetvals);
|
||||
virtual bool RecvAsyncMessage(const nsString& aMsg, const nsString& aJSON);
|
||||
|
||||
virtual bool RecvGeolocationStart();
|
||||
virtual bool RecvGeolocationStop();
|
||||
|
||||
mozilla::Monitor mMonitor;
|
||||
|
||||
GeckoChildProcessHost* mSubprocess;
|
||||
|
|
|
@ -44,6 +44,10 @@ include protocol PExternalHelperApp;
|
|||
include "mozilla/chrome/RegistryMessageUtils.h";
|
||||
include "mozilla/net/NeckoMessageUtils.h";
|
||||
|
||||
include "nsGeoPositionIPCSerialiser.h";
|
||||
|
||||
using GeoPosition;
|
||||
|
||||
using ChromePackage;
|
||||
using ResourceMapping;
|
||||
using OverrideMapping;
|
||||
|
@ -75,6 +79,8 @@ child:
|
|||
|
||||
NotifyAlertsObserver(nsCString topic, nsString data);
|
||||
|
||||
GeolocationUpdate(GeoPosition somewhere);
|
||||
|
||||
parent:
|
||||
PNecko();
|
||||
|
||||
|
@ -115,6 +121,9 @@ parent:
|
|||
PExternalHelperApp(URI uri, nsCString aMimeContentType,
|
||||
nsCString aContentDisposition, bool aForceSave,
|
||||
PRInt64 aContentLength);
|
||||
|
||||
GeolocationStart();
|
||||
GeolocationStop();
|
||||
|
||||
both:
|
||||
AsyncMessage(nsString aMessage, nsString aJSON);
|
||||
|
|
Загрузка…
Ссылка в новой задаче