michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "mozilla/dom/PFMRadioRequestChild.h" michael@0: #include "FMRadioRequestChild.h" michael@0: #include "FMRadioService.h" michael@0: michael@0: BEGIN_FMRADIO_NAMESPACE michael@0: michael@0: FMRadioRequestChild::FMRadioRequestChild(FMRadioReplyRunnable* aReplyRunnable) michael@0: : mReplyRunnable(aReplyRunnable) michael@0: { michael@0: MOZ_COUNT_CTOR(FMRadioRequestChild); michael@0: } michael@0: michael@0: FMRadioRequestChild::~FMRadioRequestChild() michael@0: { michael@0: MOZ_COUNT_DTOR(FMRadioRequestChild); michael@0: } michael@0: michael@0: bool michael@0: FMRadioRequestChild::Recv__delete__(const FMRadioResponseType& aType) michael@0: { michael@0: mReplyRunnable->SetReply(aType); michael@0: NS_DispatchToMainThread(mReplyRunnable); michael@0: michael@0: return true; michael@0: } michael@0: michael@0: END_FMRADIO_NAMESPACE michael@0: