NS_IMETHODIMP PowerManagerService::GetWakeLockState(const nsAString &aTopic, nsAString &aState) { WakeLockInformation info; GetWakeLockInfo(aTopic, &info); ComputeWakeLockState(info, aState); return NS_OK; }
void GetWakeLockInfo(const nsAString &aTopic, WakeLockInformation *aWakeLockInfo) { AssertMainThread(); PROXY_IF_SANDBOXED(GetWakeLockInfo(aTopic, aWakeLockInfo)); }