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

       1                 : //
       2                 : // Automatically generated by ipdlc.
       3                 : // Edit at your own risk
       4                 : //
       5                 : 
       6                 : #ifndef PMemoryReportRequest_h
       7                 : #define PMemoryReportRequest_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                 : 
      21                 : 
      22                 : //-----------------------------------------------------------------------------
      23                 : // Declaration of the IPDL type |struct MemoryReport|
      24                 : //
      25                 : namespace mozilla {
      26                 : namespace dom {
      27                 : class MemoryReport MOZ_FINAL
      28                 : {
      29                 : private:
      30                 : 
      31                 : public:
      32                 :     MemoryReport();
      33                 : 
      34               0 :     MemoryReport(
      35                 :             const nsCString& _process,
      36                 :             const nsCString& _path,
      37                 :             const PRInt32& _kind,
      38                 :             const PRInt32& _units,
      39                 :             const PRInt64& _amount,
      40                 :             const nsCString& _desc)
      41               0 :     {
      42               0 :         Init();
      43               0 :         Assign(_process, _path, _kind, _units, _amount, _desc);
      44               0 :     }
      45                 : 
      46               0 :     MemoryReport(const MemoryReport& _o)
      47               0 :     {
      48               0 :         Init();
      49               0 :         Assign((_o).process(), (_o).path(), (_o).kind(), (_o).units(), (_o).amount(), (_o).desc());
      50               0 :     }
      51                 : 
      52                 :     ~MemoryReport();
      53                 : 
      54                 :     void
      55                 :     operator=(const MemoryReport& _o)
      56                 :     {
      57                 :         Assign((_o).process(), (_o).path(), (_o).kind(), (_o).units(), (_o).amount(), (_o).desc());
      58                 :     }
      59                 : 
      60                 :     bool
      61                 :     operator==(const MemoryReport& _o) const;
      62                 : 
      63                 :     nsCString&
      64               0 :     process()
      65                 :     {
      66               0 :         return process_;
      67                 :     }
      68                 :     const nsCString&
      69               0 :     process() const
      70                 :     {
      71               0 :         return process_;
      72                 :     }
      73                 : 
      74                 :     nsCString&
      75               0 :     path()
      76                 :     {
      77               0 :         return path_;
      78                 :     }
      79                 :     const nsCString&
      80               0 :     path() const
      81                 :     {
      82               0 :         return path_;
      83                 :     }
      84                 : 
      85                 :     PRInt32&
      86               0 :     kind()
      87                 :     {
      88               0 :         return kind_;
      89                 :     }
      90                 :     const PRInt32&
      91               0 :     kind() const
      92                 :     {
      93               0 :         return kind_;
      94                 :     }
      95                 : 
      96                 :     PRInt32&
      97               0 :     units()
      98                 :     {
      99               0 :         return units_;
     100                 :     }
     101                 :     const PRInt32&
     102               0 :     units() const
     103                 :     {
     104               0 :         return units_;
     105                 :     }
     106                 : 
     107                 :     PRInt64&
     108               0 :     amount()
     109                 :     {
     110               0 :         return amount_;
     111                 :     }
     112                 :     const PRInt64&
     113               0 :     amount() const
     114                 :     {
     115               0 :         return amount_;
     116                 :     }
     117                 : 
     118                 :     nsCString&
     119               0 :     desc()
     120                 :     {
     121               0 :         return desc_;
     122                 :     }
     123                 :     const nsCString&
     124               0 :     desc() const
     125                 :     {
     126               0 :         return desc_;
     127                 :     }
     128                 : 
     129                 : private:
     130                 :     void
     131                 :     Init();
     132                 : 
     133                 :     void
     134                 :     Assign(
     135                 :             const nsCString& _process,
     136                 :             const nsCString& _path,
     137                 :             const PRInt32& _kind,
     138                 :             const PRInt32& _units,
     139                 :             const PRInt64& _amount,
     140                 :             const nsCString& _desc);
     141                 : 
     142                 :     nsCString process_;
     143                 :     nsCString path_;
     144                 :     PRInt32 kind_;
     145                 :     PRInt32 units_;
     146                 :     PRInt64 amount_;
     147                 :     nsCString desc_;
     148                 : };
     149                 : } // namespace dom
     150                 : } // namespace mozilla
     151                 : 
     152                 : //-----------------------------------------------------------------------------
     153                 : // Code common to PMemoryReportRequestChild and PMemoryReportRequestParent
     154                 : //
     155                 : namespace mozilla {
     156                 : namespace dom {
     157                 : namespace PMemoryReportRequest {
     158                 : 
     159                 : enum State {
     160                 :     __Dead,
     161                 :     __Null,
     162                 :     __Error,
     163                 :     __Start = __Null
     164                 : };
     165                 : 
     166                 : enum MessageType {
     167                 :     PMemoryReportRequestStart = PMemoryReportRequestMsgStart << 16,
     168                 :     PMemoryReportRequestPreStart = (PMemoryReportRequestMsgStart << 16) - 1,
     169                 :     Msg___delete____ID,
     170                 :     Reply___delete____ID,
     171                 :     PMemoryReportRequestEnd
     172                 : };
     173                 : 
     174                 : bool
     175                 : Transition(
     176                 :         State from,
     177                 :         mozilla::ipc::Trigger trigger,
     178                 :         State* next);
     179                 : 
     180                 : class Msg___delete__ :
     181                 :     public IPC::Message
     182               0 : {
     183                 : private:
     184                 :     typedef mozilla::ipc::ActorHandle ActorHandle;
     185                 :     typedef mozilla::dom::MemoryReport MemoryReport;
     186                 :     typedef mozilla::ipc::Shmem Shmem;
     187                 : 
     188                 : public:
     189                 :     enum {
     190                 :         ID = Msg___delete____ID
     191                 :     };
     192               0 :     Msg___delete__() :
     193               0 :         IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PMemoryReportRequest::Msg___delete__")
     194                 :     {
     195               0 :     }
     196                 : 
     197                 :     void
     198               0 :     Log(
     199                 :             const std::string& __pfx,
     200                 :             FILE* __outf) const
     201                 :     {
     202               0 :         std::string __logmsg;
     203               0 :         StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
     204               0 :         (__logmsg).append(__pfx);
     205               0 :         (__logmsg).append("Msg___delete__(");
     206                 : 
     207               0 :         (__logmsg).append("[TODO])\n");
     208               0 :         fputs((__logmsg).c_str(), __outf);
     209               0 :     }
     210                 : };
     211                 : 
     212                 : class Reply___delete__ :
     213                 :     public IPC::Message
     214                 : {
     215                 : private:
     216                 :     typedef mozilla::ipc::ActorHandle ActorHandle;
     217                 :     typedef mozilla::dom::MemoryReport MemoryReport;
     218                 :     typedef mozilla::ipc::Shmem Shmem;
     219                 : 
     220                 : public:
     221                 :     enum {
     222                 :         ID = Reply___delete____ID
     223                 :     };
     224                 :     Reply___delete__() :
     225                 :         IPC::Message(MSG_ROUTING_NONE, ID, PRIORITY_NORMAL, "PMemoryReportRequest::Reply___delete__")
     226                 :     {
     227                 :     }
     228                 : 
     229                 :     void
     230                 :     Log(
     231                 :             const std::string& __pfx,
     232                 :             FILE* __outf) const
     233                 :     {
     234                 :         std::string __logmsg;
     235                 :         StringAppendF((&(__logmsg)), "[time:%" PRId64 "]", PR_Now());
     236                 :         (__logmsg).append(__pfx);
     237                 :         (__logmsg).append("Reply___delete__(");
     238                 : 
     239                 :         (__logmsg).append("[TODO])\n");
     240                 :         fputs((__logmsg).c_str(), __outf);
     241                 :     }
     242                 : };
     243                 : 
     244                 : 
     245                 : 
     246                 : } // namespace PMemoryReportRequest
     247                 : } // namespace dom
     248                 : } // namespace mozilla
     249                 : 
     250                 : #endif // ifndef PMemoryReportRequest_h

Generated by: LCOV version 1.7