mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
4b147318a8
--HG-- extra : rebase_source : 0038e0d9ba6a45f19ea7552202d9db9d165c6c88 extra : amend_source : 7ac906a928fe14fbcac03cd470da78f433a9f192
58 lines
2.0 KiB
C++
58 lines
2.0 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef mozilla_dom_cellbroadcast_CellBroadcastIPCService_h
|
|
#define mozilla_dom_cellbroadcast_CellBroadcastIPCService_h
|
|
|
|
#include "mozilla/dom/cellbroadcast/PCellBroadcastChild.h"
|
|
#include "nsICellBroadcastService.h"
|
|
#include "nsCOMPtr.h"
|
|
#include "nsTArray.h"
|
|
|
|
namespace mozilla {
|
|
namespace dom {
|
|
namespace cellbroadcast {
|
|
|
|
class CellBroadcastIPCService MOZ_FINAL : public PCellBroadcastChild
|
|
, public nsICellBroadcastService
|
|
|
|
{
|
|
public:
|
|
NS_DECL_ISUPPORTS
|
|
NS_DECL_NSICELLBROADCASTSERVICE
|
|
|
|
CellBroadcastIPCService();
|
|
|
|
// PCellBroadcastChild interface
|
|
virtual bool
|
|
RecvNotifyReceivedMessage(const uint32_t& aServiceId,
|
|
const uint32_t& aGsmGeographicalScope,
|
|
const uint16_t& aMessageCode,
|
|
const uint16_t& aMessageId,
|
|
const nsString& aLanguage,
|
|
const nsString& aBody,
|
|
const uint32_t& aMessageClass,
|
|
const uint64_t& aTimestamp,
|
|
const uint32_t& aCdmaServiceCategory,
|
|
const bool& aHasEtwsInfo,
|
|
const uint32_t& aEtwsWarningType,
|
|
const bool& aEtwsEmergencyUserAlert,
|
|
const bool& aEtwsPopup) MOZ_OVERRIDE;
|
|
|
|
virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
|
|
|
|
private:
|
|
// MOZ_FINAL suppresses -Werror,-Wdelete-non-virtual-dtor
|
|
~CellBroadcastIPCService();
|
|
|
|
bool mActorDestroyed;
|
|
nsTArray<nsCOMPtr<nsICellBroadcastListener>> mListeners;
|
|
};
|
|
|
|
} // namespace cellbroadcast
|
|
} // namespace dom
|
|
} // namespace mozilla
|
|
|
|
#endif // mozilla_dom_cellbroadcast_CellBroadcastIPCService_h
|