LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIObjectLoadingContent.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIObjectLoadingContent.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIObjectLoadingContent_h__
       6             : #define __gen_nsIObjectLoadingContent_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : /* For IDL files that don't want to include root IDL files. */
      14             : #ifndef NS_NO_VTABLE
      15             : #define NS_NO_VTABLE
      16             : #endif
      17             : class nsIRequest; /* forward declaration */
      18             : 
      19             : class nsIFrame; /* forward declaration */
      20             : 
      21             : class nsIObjectFrame; /* forward declaration */
      22             : 
      23             : class nsIPluginTag; /* forward declaration */
      24             : 
      25             : class nsIDOMElement; /* forward declaration */
      26             : 
      27             : class nsIDOMClientRect; /* forward declaration */
      28             : 
      29             : class nsIURI; /* forward declaration */
      30             : 
      31             : class nsNPAPIPluginInstance;
      32             : 
      33             : /* starting interface:    nsIObjectLoadingContent */
      34             : #define NS_IOBJECTLOADINGCONTENT_IID_STR "2eb3195e-3eea-4083-bb1d-d2d70fa35ccb"
      35             : 
      36             : #define NS_IOBJECTLOADINGCONTENT_IID \
      37             :   {0x2eb3195e, 0x3eea, 0x4083, \
      38             :     { 0xbb, 0x1d, 0xd2, 0xd7, 0x0f, 0xa3, 0x5c, 0xcb }}
      39             : 
      40           0 : class NS_NO_VTABLE nsIObjectLoadingContent : public nsISupports {
      41             :  public:
      42             : 
      43             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IOBJECTLOADINGCONTENT_IID)
      44             : 
      45             :   enum {
      46             :     TYPE_LOADING = 0U,
      47             :     TYPE_IMAGE = 1U,
      48             :     TYPE_PLUGIN = 2U,
      49             :     TYPE_FAKE_PLUGIN = 3U,
      50             :     TYPE_DOCUMENT = 4U,
      51             :     TYPE_NULL = 5U,
      52             :     PLUGIN_ACTIVE = 255U,
      53             :     PLUGIN_UNSUPPORTED = 0U,
      54             :     PLUGIN_ALTERNATE = 1U,
      55             :     PLUGIN_DISABLED = 2U,
      56             :     PLUGIN_BLOCKLISTED = 3U,
      57             :     PLUGIN_OUTDATED = 4U,
      58             :     PLUGIN_CRASHED = 5U,
      59             :     PLUGIN_SUPPRESSED = 6U,
      60             :     PLUGIN_USER_DISABLED = 7U,
      61             :     PLUGIN_CLICK_TO_PLAY = 8U,
      62             :     PLUGIN_VULNERABLE_UPDATABLE = 9U,
      63             :     PLUGIN_VULNERABLE_NO_UPDATE = 10U
      64             :   };
      65             : 
      66             :   /* readonly attribute ACString actualType; */
      67             :   NS_IMETHOD GetActualType(nsACString & aActualType) = 0;
      68             : 
      69             :   /* readonly attribute unsigned long displayedType; */
      70             :   NS_IMETHOD GetDisplayedType(uint32_t *aDisplayedType) = 0;
      71             : 
      72             :   /* unsigned long getContentTypeForMIMEType (in AUTF8String aMimeType); */
      73             :   NS_IMETHOD GetContentTypeForMIMEType(const nsACString & aMimeType, uint32_t *_retval) = 0;
      74             : 
      75             :   /* [noscript] readonly attribute nsIURI baseURI; */
      76             :   NS_IMETHOD GetBaseURI(nsIURI * *aBaseURI) = 0;
      77             : 
      78             :   /* [noscript] readonly attribute nsNPAPIPluginInstancePtr pluginInstance; */
      79             :   NS_IMETHOD GetPluginInstance(nsNPAPIPluginInstance **aPluginInstance) = 0;
      80             : 
      81             :   /* [noscript] void hasNewFrame (in nsIObjectFrame aFrame); */
      82             :   NS_IMETHOD HasNewFrame(nsIObjectFrame *aFrame) = 0;
      83             : 
      84             :   /* [noscript] nsIFrame getPrintFrame (); */
      85             :   NS_IMETHOD GetPrintFrame(nsIFrame * *_retval) = 0;
      86             : 
      87             :   /* [noscript] void pluginDestroyed (); */
      88             :   NS_IMETHOD PluginDestroyed(void) = 0;
      89             : 
      90             :   /* [noscript] void pluginCrashed (in nsIPluginTag pluginTag, in AString pluginDumpID, in AString browserDumpID, in boolean submittedCrashReport); */
      91             :   NS_IMETHOD PluginCrashed(nsIPluginTag *pluginTag, const nsAString & pluginDumpID, const nsAString & browserDumpID, bool submittedCrashReport) = 0;
      92             : 
      93             :   /* void reload (in boolean aClearActivation); */
      94             :   NS_IMETHOD Reload(bool aClearActivation) = 0;
      95             : 
      96             :   /* readonly attribute boolean activated; */
      97             :   NS_IMETHOD GetActivated(bool *aActivated) = 0;
      98             : 
      99             :   /* [noscript] void stopPluginInstance (); */
     100             :   NS_IMETHOD StopPluginInstance(void) = 0;
     101             : 
     102             :   /* [noscript] void syncStartPluginInstance (); */
     103             :   NS_IMETHOD SyncStartPluginInstance(void) = 0;
     104             : 
     105             :   /* [noscript] void asyncStartPluginInstance (); */
     106             :   NS_IMETHOD AsyncStartPluginInstance(void) = 0;
     107             : 
     108             :   /* [noscript] void initializeFromChannel (in nsIRequest request); */
     109             :   NS_IMETHOD InitializeFromChannel(nsIRequest *request) = 0;
     110             : 
     111             :   /* readonly attribute nsIURI srcURI; */
     112             :   NS_IMETHOD GetSrcURI(nsIURI * *aSrcURI) = 0;
     113             : 
     114             :   /* void skipFakePlugins (); */
     115             :   NS_IMETHOD SkipFakePlugins(void) = 0;
     116             : 
     117             : };
     118             : 
     119             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIObjectLoadingContent, NS_IOBJECTLOADINGCONTENT_IID)
     120             : 
     121             : /* Use this macro when declaring classes that implement this interface. */
     122             : #define NS_DECL_NSIOBJECTLOADINGCONTENT \
     123             :   NS_IMETHOD GetActualType(nsACString & aActualType) override; \
     124             :   NS_IMETHOD GetDisplayedType(uint32_t *aDisplayedType) override; \
     125             :   NS_IMETHOD GetContentTypeForMIMEType(const nsACString & aMimeType, uint32_t *_retval) override; \
     126             :   NS_IMETHOD GetBaseURI(nsIURI * *aBaseURI) override; \
     127             :   NS_IMETHOD GetPluginInstance(nsNPAPIPluginInstance **aPluginInstance) override; \
     128             :   NS_IMETHOD HasNewFrame(nsIObjectFrame *aFrame) override; \
     129             :   NS_IMETHOD GetPrintFrame(nsIFrame * *_retval) override; \
     130             :   NS_IMETHOD PluginDestroyed(void) override; \
     131             :   NS_IMETHOD PluginCrashed(nsIPluginTag *pluginTag, const nsAString & pluginDumpID, const nsAString & browserDumpID, bool submittedCrashReport) override; \
     132             :   NS_IMETHOD Reload(bool aClearActivation) override; \
     133             :   NS_IMETHOD GetActivated(bool *aActivated) override; \
     134             :   NS_IMETHOD StopPluginInstance(void) override; \
     135             :   NS_IMETHOD SyncStartPluginInstance(void) override; \
     136             :   NS_IMETHOD AsyncStartPluginInstance(void) override; \
     137             :   NS_IMETHOD InitializeFromChannel(nsIRequest *request) override; \
     138             :   NS_IMETHOD GetSrcURI(nsIURI * *aSrcURI) override; \
     139             :   NS_IMETHOD SkipFakePlugins(void) override; 
     140             : 
     141             : /* Use this macro when declaring the members of this interface when the
     142             :    class doesn't implement the interface. This is useful for forwarding. */
     143             : #define NS_DECL_NON_VIRTUAL_NSIOBJECTLOADINGCONTENT \
     144             :   nsresult GetActualType(nsACString & aActualType); \
     145             :   nsresult GetDisplayedType(uint32_t *aDisplayedType); \
     146             :   nsresult GetContentTypeForMIMEType(const nsACString & aMimeType, uint32_t *_retval); \
     147             :   nsresult GetBaseURI(nsIURI * *aBaseURI); \
     148             :   nsresult GetPluginInstance(nsNPAPIPluginInstance **aPluginInstance); \
     149             :   nsresult HasNewFrame(nsIObjectFrame *aFrame); \
     150             :   nsresult GetPrintFrame(nsIFrame * *_retval); \
     151             :   nsresult PluginDestroyed(void); \
     152             :   nsresult PluginCrashed(nsIPluginTag *pluginTag, const nsAString & pluginDumpID, const nsAString & browserDumpID, bool submittedCrashReport); \
     153             :   nsresult Reload(bool aClearActivation); \
     154             :   nsresult GetActivated(bool *aActivated); \
     155             :   nsresult StopPluginInstance(void); \
     156             :   nsresult SyncStartPluginInstance(void); \
     157             :   nsresult AsyncStartPluginInstance(void); \
     158             :   nsresult InitializeFromChannel(nsIRequest *request); \
     159             :   nsresult GetSrcURI(nsIURI * *aSrcURI); \
     160             :   nsresult SkipFakePlugins(void); 
     161             : 
     162             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     163             : #define NS_FORWARD_NSIOBJECTLOADINGCONTENT(_to) \
     164             :   NS_IMETHOD GetActualType(nsACString & aActualType) override { return _to GetActualType(aActualType); } \
     165             :   NS_IMETHOD GetDisplayedType(uint32_t *aDisplayedType) override { return _to GetDisplayedType(aDisplayedType); } \
     166             :   NS_IMETHOD GetContentTypeForMIMEType(const nsACString & aMimeType, uint32_t *_retval) override { return _to GetContentTypeForMIMEType(aMimeType, _retval); } \
     167             :   NS_IMETHOD GetBaseURI(nsIURI * *aBaseURI) override { return _to GetBaseURI(aBaseURI); } \
     168             :   NS_IMETHOD GetPluginInstance(nsNPAPIPluginInstance **aPluginInstance) override { return _to GetPluginInstance(aPluginInstance); } \
     169             :   NS_IMETHOD HasNewFrame(nsIObjectFrame *aFrame) override { return _to HasNewFrame(aFrame); } \
     170             :   NS_IMETHOD GetPrintFrame(nsIFrame * *_retval) override { return _to GetPrintFrame(_retval); } \
     171             :   NS_IMETHOD PluginDestroyed(void) override { return _to PluginDestroyed(); } \
     172             :   NS_IMETHOD PluginCrashed(nsIPluginTag *pluginTag, const nsAString & pluginDumpID, const nsAString & browserDumpID, bool submittedCrashReport) override { return _to PluginCrashed(pluginTag, pluginDumpID, browserDumpID, submittedCrashReport); } \
     173             :   NS_IMETHOD Reload(bool aClearActivation) override { return _to Reload(aClearActivation); } \
     174             :   NS_IMETHOD GetActivated(bool *aActivated) override { return _to GetActivated(aActivated); } \
     175             :   NS_IMETHOD StopPluginInstance(void) override { return _to StopPluginInstance(); } \
     176             :   NS_IMETHOD SyncStartPluginInstance(void) override { return _to SyncStartPluginInstance(); } \
     177             :   NS_IMETHOD AsyncStartPluginInstance(void) override { return _to AsyncStartPluginInstance(); } \
     178             :   NS_IMETHOD InitializeFromChannel(nsIRequest *request) override { return _to InitializeFromChannel(request); } \
     179             :   NS_IMETHOD GetSrcURI(nsIURI * *aSrcURI) override { return _to GetSrcURI(aSrcURI); } \
     180             :   NS_IMETHOD SkipFakePlugins(void) override { return _to SkipFakePlugins(); } 
     181             : 
     182             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     183             : #define NS_FORWARD_SAFE_NSIOBJECTLOADINGCONTENT(_to) \
     184             :   NS_IMETHOD GetActualType(nsACString & aActualType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActualType(aActualType); } \
     185             :   NS_IMETHOD GetDisplayedType(uint32_t *aDisplayedType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayedType(aDisplayedType); } \
     186             :   NS_IMETHOD GetContentTypeForMIMEType(const nsACString & aMimeType, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentTypeForMIMEType(aMimeType, _retval); } \
     187             :   NS_IMETHOD GetBaseURI(nsIURI * *aBaseURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBaseURI(aBaseURI); } \
     188             :   NS_IMETHOD GetPluginInstance(nsNPAPIPluginInstance **aPluginInstance) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPluginInstance(aPluginInstance); } \
     189             :   NS_IMETHOD HasNewFrame(nsIObjectFrame *aFrame) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasNewFrame(aFrame); } \
     190             :   NS_IMETHOD GetPrintFrame(nsIFrame * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintFrame(_retval); } \
     191             :   NS_IMETHOD PluginDestroyed(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PluginDestroyed(); } \
     192             :   NS_IMETHOD PluginCrashed(nsIPluginTag *pluginTag, const nsAString & pluginDumpID, const nsAString & browserDumpID, bool submittedCrashReport) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PluginCrashed(pluginTag, pluginDumpID, browserDumpID, submittedCrashReport); } \
     193             :   NS_IMETHOD Reload(bool aClearActivation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Reload(aClearActivation); } \
     194             :   NS_IMETHOD GetActivated(bool *aActivated) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActivated(aActivated); } \
     195             :   NS_IMETHOD StopPluginInstance(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StopPluginInstance(); } \
     196             :   NS_IMETHOD SyncStartPluginInstance(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SyncStartPluginInstance(); } \
     197             :   NS_IMETHOD AsyncStartPluginInstance(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncStartPluginInstance(); } \
     198             :   NS_IMETHOD InitializeFromChannel(nsIRequest *request) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitializeFromChannel(request); } \
     199             :   NS_IMETHOD GetSrcURI(nsIURI * *aSrcURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSrcURI(aSrcURI); } \
     200             :   NS_IMETHOD SkipFakePlugins(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SkipFakePlugins(); } 
     201             : 
     202             : #if 0
     203             : /* Use the code below as a template for the implementation class for this interface. */
     204             : 
     205             : /* Header file */
     206             : class nsObjectLoadingContent : public nsIObjectLoadingContent
     207             : {
     208             : public:
     209             :   NS_DECL_ISUPPORTS
     210             :   NS_DECL_NSIOBJECTLOADINGCONTENT
     211             : 
     212             :   nsObjectLoadingContent();
     213             : 
     214             : private:
     215             :   ~nsObjectLoadingContent();
     216             : 
     217             : protected:
     218             :   /* additional members */
     219             : };
     220             : 
     221             : /* Implementation file */
     222             : NS_IMPL_ISUPPORTS(nsObjectLoadingContent, nsIObjectLoadingContent)
     223             : 
     224             : nsObjectLoadingContent::nsObjectLoadingContent()
     225             : {
     226             :   /* member initializers and constructor code */
     227             : }
     228             : 
     229             : nsObjectLoadingContent::~nsObjectLoadingContent()
     230             : {
     231             :   /* destructor code */
     232             : }
     233             : 
     234             : /* readonly attribute ACString actualType; */
     235             : NS_IMETHODIMP nsObjectLoadingContent::GetActualType(nsACString & aActualType)
     236             : {
     237             :     return NS_ERROR_NOT_IMPLEMENTED;
     238             : }
     239             : 
     240             : /* readonly attribute unsigned long displayedType; */
     241             : NS_IMETHODIMP nsObjectLoadingContent::GetDisplayedType(uint32_t *aDisplayedType)
     242             : {
     243             :     return NS_ERROR_NOT_IMPLEMENTED;
     244             : }
     245             : 
     246             : /* unsigned long getContentTypeForMIMEType (in AUTF8String aMimeType); */
     247             : NS_IMETHODIMP nsObjectLoadingContent::GetContentTypeForMIMEType(const nsACString & aMimeType, uint32_t *_retval)
     248             : {
     249             :     return NS_ERROR_NOT_IMPLEMENTED;
     250             : }
     251             : 
     252             : /* [noscript] readonly attribute nsIURI baseURI; */
     253             : NS_IMETHODIMP nsObjectLoadingContent::GetBaseURI(nsIURI * *aBaseURI)
     254             : {
     255             :     return NS_ERROR_NOT_IMPLEMENTED;
     256             : }
     257             : 
     258             : /* [noscript] readonly attribute nsNPAPIPluginInstancePtr pluginInstance; */
     259             : NS_IMETHODIMP nsObjectLoadingContent::GetPluginInstance(nsNPAPIPluginInstance **aPluginInstance)
     260             : {
     261             :     return NS_ERROR_NOT_IMPLEMENTED;
     262             : }
     263             : 
     264             : /* [noscript] void hasNewFrame (in nsIObjectFrame aFrame); */
     265             : NS_IMETHODIMP nsObjectLoadingContent::HasNewFrame(nsIObjectFrame *aFrame)
     266             : {
     267             :     return NS_ERROR_NOT_IMPLEMENTED;
     268             : }
     269             : 
     270             : /* [noscript] nsIFrame getPrintFrame (); */
     271             : NS_IMETHODIMP nsObjectLoadingContent::GetPrintFrame(nsIFrame * *_retval)
     272             : {
     273             :     return NS_ERROR_NOT_IMPLEMENTED;
     274             : }
     275             : 
     276             : /* [noscript] void pluginDestroyed (); */
     277             : NS_IMETHODIMP nsObjectLoadingContent::PluginDestroyed()
     278             : {
     279             :     return NS_ERROR_NOT_IMPLEMENTED;
     280             : }
     281             : 
     282             : /* [noscript] void pluginCrashed (in nsIPluginTag pluginTag, in AString pluginDumpID, in AString browserDumpID, in boolean submittedCrashReport); */
     283             : NS_IMETHODIMP nsObjectLoadingContent::PluginCrashed(nsIPluginTag *pluginTag, const nsAString & pluginDumpID, const nsAString & browserDumpID, bool submittedCrashReport)
     284             : {
     285             :     return NS_ERROR_NOT_IMPLEMENTED;
     286             : }
     287             : 
     288             : /* void reload (in boolean aClearActivation); */
     289             : NS_IMETHODIMP nsObjectLoadingContent::Reload(bool aClearActivation)
     290             : {
     291             :     return NS_ERROR_NOT_IMPLEMENTED;
     292             : }
     293             : 
     294             : /* readonly attribute boolean activated; */
     295             : NS_IMETHODIMP nsObjectLoadingContent::GetActivated(bool *aActivated)
     296             : {
     297             :     return NS_ERROR_NOT_IMPLEMENTED;
     298             : }
     299             : 
     300             : /* [noscript] void stopPluginInstance (); */
     301             : NS_IMETHODIMP nsObjectLoadingContent::StopPluginInstance()
     302             : {
     303             :     return NS_ERROR_NOT_IMPLEMENTED;
     304             : }
     305             : 
     306             : /* [noscript] void syncStartPluginInstance (); */
     307             : NS_IMETHODIMP nsObjectLoadingContent::SyncStartPluginInstance()
     308             : {
     309             :     return NS_ERROR_NOT_IMPLEMENTED;
     310             : }
     311             : 
     312             : /* [noscript] void asyncStartPluginInstance (); */
     313             : NS_IMETHODIMP nsObjectLoadingContent::AsyncStartPluginInstance()
     314             : {
     315             :     return NS_ERROR_NOT_IMPLEMENTED;
     316             : }
     317             : 
     318             : /* [noscript] void initializeFromChannel (in nsIRequest request); */
     319             : NS_IMETHODIMP nsObjectLoadingContent::InitializeFromChannel(nsIRequest *request)
     320             : {
     321             :     return NS_ERROR_NOT_IMPLEMENTED;
     322             : }
     323             : 
     324             : /* readonly attribute nsIURI srcURI; */
     325             : NS_IMETHODIMP nsObjectLoadingContent::GetSrcURI(nsIURI * *aSrcURI)
     326             : {
     327             :     return NS_ERROR_NOT_IMPLEMENTED;
     328             : }
     329             : 
     330             : /* void skipFakePlugins (); */
     331             : NS_IMETHODIMP nsObjectLoadingContent::SkipFakePlugins()
     332             : {
     333             :     return NS_ERROR_NOT_IMPLEMENTED;
     334             : }
     335             : 
     336             : /* End of implementation class template. */
     337             : #endif
     338             : 
     339             : 
     340             : #endif /* __gen_nsIObjectLoadingContent_h__ */

Generated by: LCOV version 1.13