LCOV - code coverage report
Current view: directory - objdir/ipc/ipdl/_ipdlheaders/mozilla/net - PCookieServiceChild.h (source / functions) Found Hit Coverage
Test: app.info Lines: 5 0 0.0 %
Date: 2012-06-02 Functions: 6 0 0.0 %

       1                 : //
       2                 : // Automatically generated by ipdlc.
       3                 : // Edit at your own risk
       4                 : //
       5                 : 
       6                 : #ifndef PCookieServiceChild_h
       7                 : #define PCookieServiceChild_h
       8                 : 
       9                 : #include "mozilla/net/PCookieService.h"
      10                 : namespace mozilla {
      11                 : namespace net {
      12                 : class PNeckoChild;
      13                 : } // namespace net
      14                 : } // namespace mozilla
      15                 : 
      16                 : #ifdef DEBUG
      17                 : #include "prenv.h"
      18                 : #endif // DEBUG
      19                 : #include "base/id_map.h"
      20                 : #include "mozilla/ipc/RPCChannel.h"
      21                 : 
      22                 : 
      23                 : namespace mozilla {
      24                 : namespace net {
      25                 : class PNeckoChild;
      26                 : } // namespace net
      27                 : } // namespace mozilla
      28                 : 
      29                 : namespace mozilla {
      30                 : namespace net {
      31                 : 
      32                 : 
      33                 : class /*NS_ABSTRACT_CLASS*/ PCookieServiceChild :
      34                 :     protected mozilla::ipc::RPCChannel::RPCListener,
      35                 :     protected mozilla::ipc::IProtocolManager<mozilla::ipc::RPCChannel::RPCListener>
      36                 : {
      37                 :     friend class mozilla::net::PNeckoChild;
      38                 : 
      39                 : protected:
      40                 :     typedef mozilla::ipc::ActorHandle ActorHandle;
      41                 :     typedef mozilla::ipc::Shmem Shmem;
      42                 :     typedef IPC::URI URI;
      43                 :     typedef mozilla::net::PNeckoChild PNeckoChild;
      44                 :     typedef base::ProcessId ProcessId;
      45                 :     typedef mozilla::ipc::ProtocolId ProtocolId;
      46                 :     typedef mozilla::ipc::Transport Transport;
      47                 :     typedef mozilla::ipc::TransportDescriptor TransportDescriptor;
      48                 : 
      49                 :     typedef PCookieService::State State;
      50                 : 
      51                 : 
      52                 :     virtual void
      53                 :     ActorDestroy(ActorDestroyReason why);
      54                 : 
      55                 : public:
      56                 :     typedef IPC::Message Message;
      57                 :     typedef mozilla::ipc::RPCChannel Channel;
      58                 :     typedef mozilla::ipc::RPCChannel::RPCListener ChannelListener;
      59                 :     typedef base::ProcessHandle ProcessHandle;
      60                 :     typedef mozilla::ipc::AsyncChannel AsyncChannel;
      61                 :     typedef mozilla::ipc::SharedMemory SharedMemory;
      62                 :     typedef mozilla::ipc::Trigger Trigger;
      63                 : 
      64                 : public:
      65                 :     PCookieServiceChild();
      66                 : 
      67                 :     virtual ~PCookieServiceChild();
      68                 : 
      69                 :     PNeckoChild*
      70                 :     Manager();
      71                 : 
      72                 :     PCookieService::State
      73                 :     state();
      74                 : 
      75                 :     bool
      76                 :     SendGetCookieString(
      77                 :             const URI& host,
      78                 :             const bool& isForeign,
      79                 :             const bool& fromHttp,
      80                 :             nsCString* result);
      81                 : 
      82                 :     bool
      83                 :     SendSetCookieString(
      84                 :             const URI& host,
      85                 :             const bool& isForeign,
      86                 :             const nsCString& cookieString,
      87                 :             const nsCString& serverTime,
      88                 :             const bool& fromHttp);
      89                 : 
      90                 :     static bool
      91                 :     Send__delete__(PCookieServiceChild* actor);
      92                 : 
      93                 :     virtual int32
      94                 :     Register(ChannelListener* aRouted);
      95                 :     virtual int32
      96                 :     RegisterID(
      97                 :             ChannelListener* aRouted,
      98                 :             int32 aId);
      99                 :     virtual ChannelListener*
     100                 :     Lookup(int32 aId);
     101                 :     virtual void
     102                 :     Unregister(int32 aId);
     103                 :     virtual void
     104                 :     RemoveManagee(
     105                 :             int32 aProtocolId,
     106                 :             ChannelListener* aListener);
     107                 :     virtual Shmem::SharedMemory*
     108                 :     CreateSharedMemory(
     109                 :             size_t aSize,
     110                 :             Shmem::SharedMemory::SharedMemoryType type,
     111                 :             bool unsafe,
     112                 :             Shmem::id_t* aId);
     113                 :     virtual bool
     114                 :     AdoptSharedMemory(
     115                 :             Shmem::SharedMemory* segment,
     116                 :             Shmem::id_t* aId);
     117                 :     virtual Shmem::SharedMemory*
     118                 :     LookupSharedMemory(Shmem::id_t aId);
     119                 :     virtual bool
     120                 :     IsTrackingSharedMemory(Shmem::SharedMemory* segment);
     121                 :     virtual bool
     122                 :     DestroySharedMemory(Shmem& aShmem);
     123                 :     virtual ProcessHandle
     124                 :     OtherProcess() const;
     125                 :     virtual AsyncChannel*
     126                 :     GetIPCChannel();
     127                 : 
     128                 :     virtual Result
     129                 :     OnMessageReceived(const Message& __msg);
     130                 : 
     131                 :     virtual Result
     132                 :     OnMessageReceived(
     133                 :             const Message& __msg,
     134                 :             Message*& __reply);
     135                 : 
     136                 :     virtual Result
     137                 :     OnCallReceived(
     138                 :             const Message& __msg,
     139                 :             Message*& __reply);
     140                 : 
     141                 :     void
     142                 :     OnProcessingError(Result code);
     143                 : 
     144                 :     bool
     145                 :     OnReplyTimeout();
     146                 : 
     147                 :     void
     148                 :     OnChannelClose();
     149                 : 
     150                 :     void
     151                 :     OnChannelError();
     152                 : 
     153                 :     void
     154                 :     OnChannelConnected(int32 pid);
     155                 : 
     156                 :     // Methods for managing shmem
     157                 :     bool
     158                 :     AllocShmem(
     159                 :             size_t aSize,
     160                 :             Shmem::SharedMemory::SharedMemoryType aType,
     161                 :             Shmem* aMem);
     162                 : 
     163                 :     bool
     164                 :     AllocUnsafeShmem(
     165                 :             size_t aSize,
     166                 :             Shmem::SharedMemory::SharedMemoryType aType,
     167                 :             Shmem* aMem);
     168                 : 
     169                 :     bool
     170                 :     AdoptShmem(
     171                 :             Shmem& aMem,
     172                 :             Shmem* aOutMem);
     173                 : 
     174                 :     bool
     175                 :     DeallocShmem(Shmem& aMem);
     176                 : 
     177                 : private:
     178                 :     virtual void
     179                 :     FatalError(const char* const msg) const;
     180                 : 
     181                 :     void
     182                 :     DestroySubtree(ActorDestroyReason why);
     183                 : 
     184                 :     void
     185                 :     DeallocSubtree();
     186                 : 
     187                 :     template<typename T>
     188                 :     void
     189               0 :     Write(
     190                 :             const T& __v,
     191                 :             Message* __msg)
     192                 :     {
     193               0 :         IPC::WriteParam(__msg, __v);
     194               0 :     }
     195                 : 
     196                 :     template<typename T>
     197                 :     bool
     198               0 :     Read(
     199                 :             T* __v,
     200                 :             const Message* __msg,
     201                 :             void** __iter)
     202                 :     {
     203               0 :         return IPC::ReadParam(__msg, __iter, __v);
     204                 :     }
     205                 : 
     206                 :     void
     207                 :     Write(
     208                 :             PCookieServiceChild* __v,
     209                 :             Message* __msg,
     210                 :             bool __nullable);
     211                 : 
     212                 :     bool
     213                 :     Read(
     214                 :             PCookieServiceChild** __v,
     215                 :             const Message* __msg,
     216                 :             void** __iter,
     217                 :             bool __nullable) NS_WARN_UNUSED_RESULT;
     218                 : 
     219                 :     Channel* mChannel;
     220                 :     int32 mId;
     221                 :     mozilla::ipc::IProtocolManager<mozilla::ipc::RPCChannel::RPCListener>* mManager;
     222                 :     State mState;
     223                 : };
     224                 : 
     225                 : 
     226                 : } // namespace net
     227                 : } // namespace mozilla
     228                 : 
     229                 : #if 0
     230                 : 
     231                 : //-----------------------------------------------------------------------------
     232                 : // Skeleton implementation of abstract actor class
     233                 : 
     234                 : // Header file contents
     235                 : namespace mozilla {
     236                 : namespace net {
     237                 : class CookieServiceChild :
     238                 :     public PCookieServiceChild
     239                 : {
     240                 :     CookieServiceChild();
     241                 :     virtual ~CookieServiceChild();
     242                 : };
     243                 : } // namespace net
     244                 : } // namespace mozilla
     245                 : 
     246                 : 
     247                 : // C++ file contents
     248                 : namespace mozilla {
     249                 : namespace net {
     250                 : CookieServiceChild::CookieServiceChild()
     251                 : {
     252                 :     MOZ_COUNT_CTOR(CookieServiceChild);
     253                 : }
     254                 : 
     255                 : CookieServiceChild::~CookieServiceChild()
     256                 : {
     257                 :     MOZ_COUNT_DTOR(CookieServiceChild);
     258                 : }
     259                 : 
     260                 : } // namespace net
     261                 : } // namespace mozilla
     262                 : #endif // if 0
     263                 : 
     264                 : #endif // ifndef PCookieServiceChild_h

Generated by: LCOV version 1.7