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.

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

mercurial