ipc/ril/Ril.h

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* vim: set sw=2 ts=8 et ft=cpp: */
     3 /* This Source Code Form is subject to the terms of the Mozilla Public
     4  * License, v. 2.0. If a copy of the MPL was not distributed with this
     5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     7 #ifndef mozilla_ipc_Ril_h
     8 #define mozilla_ipc_Ril_h 1
    10 #include <mozilla/dom/workers/Workers.h>
    11 #include <mozilla/ipc/UnixSocket.h>
    13 namespace mozilla {
    14 namespace ipc {
    16 class RilConsumer : public mozilla::ipc::UnixSocketConsumer
    17 {
    18 public:
    19   virtual ~RilConsumer() { }
    21   static nsresult Register(unsigned int aClientId,
    22                            mozilla::dom::workers::WorkerCrossThreadDispatcher* aDispatcher);
    23   static void Shutdown();
    25 private:
    26   RilConsumer(unsigned long aClientId,
    27               mozilla::dom::workers::WorkerCrossThreadDispatcher* aDispatcher);
    29   virtual void ReceiveSocketData(nsAutoPtr<UnixSocketRawData>& aMessage);
    31   virtual void OnConnectSuccess();
    32   virtual void OnConnectError();
    33   virtual void OnDisconnect();
    35 private:
    36   nsRefPtr<mozilla::dom::workers::WorkerCrossThreadDispatcher> mDispatcher;
    37   unsigned long mClientId;
    38   nsCString mAddress;
    39   bool mShutdown;
    40 };
    42 } // namespace ipc
    43 } // namespace mozilla
    45 #endif // mozilla_ipc_Ril_h

mercurial