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

       1                 : //
       2                 : // Automatically generated by ipdlc.
       3                 : // Edit at your own risk
       4                 : //
       5                 : 
       6                 : #ifndef PPluginStream_h
       7                 : #define PPluginStream_h
       8                 : 
       9                 : #include "mozilla/Attributes.h"
      10                 : #include "base/basictypes.h"
      11                 : #include "prtime.h"
      12                 : #include "nscore.h"
      13                 : #include "IPCMessageStart.h"
      14                 : #include "IPC/IPCMessageUtils.h"
      15                 : #include "nsAutoPtr.h"
      16                 : #include "nsStringGlue.h"
      17                 : #include "nsTArray.h"
      18                 : #include "nsIFile.h"
      19                 : #include "mozilla/ipc/ProtocolUtils.h"
      20                 : #include "mozilla/plugins/PluginMessageUtils.h"
      21                 : 
      22                 : //-----------------------------------------------------------------------------
      23                 : // Code common to PPluginStreamChild and PPluginStreamParent
      24                 : //
      25                 : namespace mozilla {
      26                 : namespace plugins {
      27                 : namespace PPluginStream {
      28                 : 
      29                 : enum State {
      30                 :     __Dead,
      31                 :     __Null,
      32                 :     __Error,
      33                 :     __Start = __Null
      34                 : };
      35                 : 
      36                 : enum MessageType {
      37                 :     PPluginStreamStart = PPluginStreamMsgStart << 16,
      38                 :     PPluginStreamPreStart = (PPluginStreamMsgStart << 16) - 1,
      39                 :     Msg_NPN_Write__ID,
      40                 :     Reply_NPN_Write__ID,
      41                 :     Msg___delete____ID,
      42                 :     Reply___delete____ID,
      43                 :     PPluginStreamEnd
      44                 : };
      45                 : 
      46                 : bool
      47                 : Transition(
      48                 :         State from,
      49                 :         mozilla::ipc::Trigger trigger,
      50                 :         State* next);
      51                 : 
      52                 : class Msg_NPN_Write :
      53                 :     public IPC::Message
      54               0 : {
      55                 : private:
      56                 :     typedef mozilla::ipc::ActorHandle ActorHandle;
      57                 :     typedef mozilla::ipc::Shmem Shmem;
      58                 :     typedef mozilla::plugins::Buffer Buffer;
      59                 : 
      60                 : public:
      61                 :     enum {
      62                 :         ID = Msg_NPN_Write__ID
      63                 :     };
      64               0 :     Msg_NPN_Write() :
      65               0 :         IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PPluginStream::Msg_NPN_Write")
      66                 :     {
      67               0 :     }
      68                 : 
      69                 :     void
      70               0 :     Log(
      71                 :             const std::string& __pfx,
      72                 :             FILE* __outf) const
      73                 :     {
      74               0 :         std::string __logmsg;
      75               0 :         StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
      76               0 :         (__logmsg).append(__pfx);
      77               0 :         (__logmsg).append("Msg_NPN_Write(");
      78                 : 
      79               0 :         (__logmsg).append("[TODO])\n");
      80               0 :         fputs((__logmsg).c_str(), __outf);
      81               0 :     }
      82                 : };
      83                 : 
      84                 : class Reply_NPN_Write :
      85                 :     public IPC::Message
      86               0 : {
      87                 : private:
      88                 :     typedef mozilla::ipc::ActorHandle ActorHandle;
      89                 :     typedef mozilla::ipc::Shmem Shmem;
      90                 :     typedef mozilla::plugins::Buffer Buffer;
      91                 : 
      92                 : public:
      93                 :     enum {
      94                 :         ID = Reply_NPN_Write__ID
      95                 :     };
      96               0 :     Reply_NPN_Write() :
      97               0 :         IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PPluginStream::Reply_NPN_Write")
      98                 :     {
      99               0 :     }
     100                 : 
     101                 :     void
     102               0 :     Log(
     103                 :             const std::string& __pfx,
     104                 :             FILE* __outf) const
     105                 :     {
     106               0 :         std::string __logmsg;
     107               0 :         StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
     108               0 :         (__logmsg).append(__pfx);
     109               0 :         (__logmsg).append("Reply_NPN_Write(");
     110                 : 
     111               0 :         (__logmsg).append("[TODO])\n");
     112               0 :         fputs((__logmsg).c_str(), __outf);
     113               0 :     }
     114                 : };
     115                 : 
     116                 : class Msg___delete__ :
     117                 :     public IPC::Message
     118               0 : {
     119                 : private:
     120                 :     typedef mozilla::ipc::ActorHandle ActorHandle;
     121                 :     typedef mozilla::ipc::Shmem Shmem;
     122                 :     typedef mozilla::plugins::Buffer Buffer;
     123                 : 
     124                 : public:
     125                 :     enum {
     126                 :         ID = Msg___delete____ID
     127                 :     };
     128               0 :     Msg___delete__() :
     129               0 :         IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PPluginStream::Msg___delete__")
     130                 :     {
     131               0 :     }
     132                 : 
     133                 :     void
     134               0 :     Log(
     135                 :             const std::string& __pfx,
     136                 :             FILE* __outf) const
     137                 :     {
     138               0 :         std::string __logmsg;
     139               0 :         StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
     140               0 :         (__logmsg).append(__pfx);
     141               0 :         (__logmsg).append("Msg___delete__(");
     142                 : 
     143               0 :         (__logmsg).append("[TODO])\n");
     144               0 :         fputs((__logmsg).c_str(), __outf);
     145               0 :     }
     146                 : };
     147                 : 
     148                 : class Reply___delete__ :
     149                 :     public IPC::Message
     150               0 : {
     151                 : private:
     152                 :     typedef mozilla::ipc::ActorHandle ActorHandle;
     153                 :     typedef mozilla::ipc::Shmem Shmem;
     154                 :     typedef mozilla::plugins::Buffer Buffer;
     155                 : 
     156                 : public:
     157                 :     enum {
     158                 :         ID = Reply___delete____ID
     159                 :     };
     160               0 :     Reply___delete__() :
     161               0 :         IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PPluginStream::Reply___delete__")
     162                 :     {
     163               0 :     }
     164                 : 
     165                 :     void
     166               0 :     Log(
     167                 :             const std::string& __pfx,
     168                 :             FILE* __outf) const
     169                 :     {
     170               0 :         std::string __logmsg;
     171               0 :         StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
     172               0 :         (__logmsg).append(__pfx);
     173               0 :         (__logmsg).append("Reply___delete__(");
     174                 : 
     175               0 :         (__logmsg).append("[TODO])\n");
     176               0 :         fputs((__logmsg).c_str(), __outf);
     177               0 :     }
     178                 : };
     179                 : 
     180                 : 
     181                 : 
     182                 : } // namespace PPluginStream
     183                 : } // namespace plugins
     184                 : } // namespace mozilla
     185                 : 
     186                 : #endif // ifndef PPluginStream_h

Generated by: LCOV version 1.7