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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIURLParser.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIURLParser_h__
       6             : #define __gen_nsIURLParser_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             : 
      18             : /* starting interface:    nsIURLParser */
      19             : #define NS_IURLPARSER_IID_STR "78c5d19f-f5d2-4732-8d3d-d5a7d7133bc0"
      20             : 
      21             : #define NS_IURLPARSER_IID \
      22             :   {0x78c5d19f, 0xf5d2, 0x4732, \
      23             :     { 0x8d, 0x3d, 0xd5, 0xa7, 0xd7, 0x13, 0x3b, 0xc0 }}
      24             : 
      25           9 : class NS_NO_VTABLE nsIURLParser : public nsISupports {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURLPARSER_IID)
      29             : 
      30             :   /* void parseURL (in string spec, in long specLen, out unsigned long schemePos, out long schemeLen, out unsigned long authorityPos, out long authorityLen, out unsigned long pathPos, out long pathLen); */
      31             :   NS_IMETHOD ParseURL(const char * spec, int32_t specLen, uint32_t *schemePos, int32_t *schemeLen, uint32_t *authorityPos, int32_t *authorityLen, uint32_t *pathPos, int32_t *pathLen) = 0;
      32             : 
      33             :   /* void parseAuthority (in string authority, in long authorityLen, out unsigned long usernamePos, out long usernameLen, out unsigned long passwordPos, out long passwordLen, out unsigned long hostnamePos, out long hostnameLen, out long port); */
      34             :   NS_IMETHOD ParseAuthority(const char * authority, int32_t authorityLen, uint32_t *usernamePos, int32_t *usernameLen, uint32_t *passwordPos, int32_t *passwordLen, uint32_t *hostnamePos, int32_t *hostnameLen, int32_t *port) = 0;
      35             : 
      36             :   /* void parseUserInfo (in string userinfo, in long userinfoLen, out unsigned long usernamePos, out long usernameLen, out unsigned long passwordPos, out long passwordLen); */
      37             :   NS_IMETHOD ParseUserInfo(const char * userinfo, int32_t userinfoLen, uint32_t *usernamePos, int32_t *usernameLen, uint32_t *passwordPos, int32_t *passwordLen) = 0;
      38             : 
      39             :   /* void parseServerInfo (in string serverinfo, in long serverinfoLen, out unsigned long hostnamePos, out long hostnameLen, out long port); */
      40             :   NS_IMETHOD ParseServerInfo(const char * serverinfo, int32_t serverinfoLen, uint32_t *hostnamePos, int32_t *hostnameLen, int32_t *port) = 0;
      41             : 
      42             :   /* void parsePath (in string path, in long pathLen, out unsigned long filepathPos, out long filepathLen, out unsigned long queryPos, out long queryLen, out unsigned long refPos, out long refLen); */
      43             :   NS_IMETHOD ParsePath(const char * path, int32_t pathLen, uint32_t *filepathPos, int32_t *filepathLen, uint32_t *queryPos, int32_t *queryLen, uint32_t *refPos, int32_t *refLen) = 0;
      44             : 
      45             :   /* void parseFilePath (in string filepath, in long filepathLen, out unsigned long directoryPos, out long directoryLen, out unsigned long basenamePos, out long basenameLen, out unsigned long extensionPos, out long extensionLen); */
      46             :   NS_IMETHOD ParseFilePath(const char * filepath, int32_t filepathLen, uint32_t *directoryPos, int32_t *directoryLen, uint32_t *basenamePos, int32_t *basenameLen, uint32_t *extensionPos, int32_t *extensionLen) = 0;
      47             : 
      48             :   /* void parseFileName (in string filename, in long filenameLen, out unsigned long basenamePos, out long basenameLen, out unsigned long extensionPos, out long extensionLen); */
      49             :   NS_IMETHOD ParseFileName(const char * filename, int32_t filenameLen, uint32_t *basenamePos, int32_t *basenameLen, uint32_t *extensionPos, int32_t *extensionLen) = 0;
      50             : 
      51             : };
      52             : 
      53             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIURLParser, NS_IURLPARSER_IID)
      54             : 
      55             : /* Use this macro when declaring classes that implement this interface. */
      56             : #define NS_DECL_NSIURLPARSER \
      57             :   NS_IMETHOD ParseURL(const char * spec, int32_t specLen, uint32_t *schemePos, int32_t *schemeLen, uint32_t *authorityPos, int32_t *authorityLen, uint32_t *pathPos, int32_t *pathLen) override; \
      58             :   NS_IMETHOD ParseAuthority(const char * authority, int32_t authorityLen, uint32_t *usernamePos, int32_t *usernameLen, uint32_t *passwordPos, int32_t *passwordLen, uint32_t *hostnamePos, int32_t *hostnameLen, int32_t *port) override; \
      59             :   NS_IMETHOD ParseUserInfo(const char * userinfo, int32_t userinfoLen, uint32_t *usernamePos, int32_t *usernameLen, uint32_t *passwordPos, int32_t *passwordLen) override; \
      60             :   NS_IMETHOD ParseServerInfo(const char * serverinfo, int32_t serverinfoLen, uint32_t *hostnamePos, int32_t *hostnameLen, int32_t *port) override; \
      61             :   NS_IMETHOD ParsePath(const char * path, int32_t pathLen, uint32_t *filepathPos, int32_t *filepathLen, uint32_t *queryPos, int32_t *queryLen, uint32_t *refPos, int32_t *refLen) override; \
      62             :   NS_IMETHOD ParseFilePath(const char * filepath, int32_t filepathLen, uint32_t *directoryPos, int32_t *directoryLen, uint32_t *basenamePos, int32_t *basenameLen, uint32_t *extensionPos, int32_t *extensionLen) override; \
      63             :   NS_IMETHOD ParseFileName(const char * filename, int32_t filenameLen, uint32_t *basenamePos, int32_t *basenameLen, uint32_t *extensionPos, int32_t *extensionLen) override; 
      64             : 
      65             : /* Use this macro when declaring the members of this interface when the
      66             :    class doesn't implement the interface. This is useful for forwarding. */
      67             : #define NS_DECL_NON_VIRTUAL_NSIURLPARSER \
      68             :   nsresult ParseURL(const char * spec, int32_t specLen, uint32_t *schemePos, int32_t *schemeLen, uint32_t *authorityPos, int32_t *authorityLen, uint32_t *pathPos, int32_t *pathLen); \
      69             :   nsresult ParseAuthority(const char * authority, int32_t authorityLen, uint32_t *usernamePos, int32_t *usernameLen, uint32_t *passwordPos, int32_t *passwordLen, uint32_t *hostnamePos, int32_t *hostnameLen, int32_t *port); \
      70             :   nsresult ParseUserInfo(const char * userinfo, int32_t userinfoLen, uint32_t *usernamePos, int32_t *usernameLen, uint32_t *passwordPos, int32_t *passwordLen); \
      71             :   nsresult ParseServerInfo(const char * serverinfo, int32_t serverinfoLen, uint32_t *hostnamePos, int32_t *hostnameLen, int32_t *port); \
      72             :   nsresult ParsePath(const char * path, int32_t pathLen, uint32_t *filepathPos, int32_t *filepathLen, uint32_t *queryPos, int32_t *queryLen, uint32_t *refPos, int32_t *refLen); \
      73             :   nsresult ParseFilePath(const char * filepath, int32_t filepathLen, uint32_t *directoryPos, int32_t *directoryLen, uint32_t *basenamePos, int32_t *basenameLen, uint32_t *extensionPos, int32_t *extensionLen); \
      74             :   nsresult ParseFileName(const char * filename, int32_t filenameLen, uint32_t *basenamePos, int32_t *basenameLen, uint32_t *extensionPos, int32_t *extensionLen); 
      75             : 
      76             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      77             : #define NS_FORWARD_NSIURLPARSER(_to) \
      78             :   NS_IMETHOD ParseURL(const char * spec, int32_t specLen, uint32_t *schemePos, int32_t *schemeLen, uint32_t *authorityPos, int32_t *authorityLen, uint32_t *pathPos, int32_t *pathLen) override { return _to ParseURL(spec, specLen, schemePos, schemeLen, authorityPos, authorityLen, pathPos, pathLen); } \
      79             :   NS_IMETHOD ParseAuthority(const char * authority, int32_t authorityLen, uint32_t *usernamePos, int32_t *usernameLen, uint32_t *passwordPos, int32_t *passwordLen, uint32_t *hostnamePos, int32_t *hostnameLen, int32_t *port) override { return _to ParseAuthority(authority, authorityLen, usernamePos, usernameLen, passwordPos, passwordLen, hostnamePos, hostnameLen, port); } \
      80             :   NS_IMETHOD ParseUserInfo(const char * userinfo, int32_t userinfoLen, uint32_t *usernamePos, int32_t *usernameLen, uint32_t *passwordPos, int32_t *passwordLen) override { return _to ParseUserInfo(userinfo, userinfoLen, usernamePos, usernameLen, passwordPos, passwordLen); } \
      81             :   NS_IMETHOD ParseServerInfo(const char * serverinfo, int32_t serverinfoLen, uint32_t *hostnamePos, int32_t *hostnameLen, int32_t *port) override { return _to ParseServerInfo(serverinfo, serverinfoLen, hostnamePos, hostnameLen, port); } \
      82             :   NS_IMETHOD ParsePath(const char * path, int32_t pathLen, uint32_t *filepathPos, int32_t *filepathLen, uint32_t *queryPos, int32_t *queryLen, uint32_t *refPos, int32_t *refLen) override { return _to ParsePath(path, pathLen, filepathPos, filepathLen, queryPos, queryLen, refPos, refLen); } \
      83             :   NS_IMETHOD ParseFilePath(const char * filepath, int32_t filepathLen, uint32_t *directoryPos, int32_t *directoryLen, uint32_t *basenamePos, int32_t *basenameLen, uint32_t *extensionPos, int32_t *extensionLen) override { return _to ParseFilePath(filepath, filepathLen, directoryPos, directoryLen, basenamePos, basenameLen, extensionPos, extensionLen); } \
      84             :   NS_IMETHOD ParseFileName(const char * filename, int32_t filenameLen, uint32_t *basenamePos, int32_t *basenameLen, uint32_t *extensionPos, int32_t *extensionLen) override { return _to ParseFileName(filename, filenameLen, basenamePos, basenameLen, extensionPos, extensionLen); } 
      85             : 
      86             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      87             : #define NS_FORWARD_SAFE_NSIURLPARSER(_to) \
      88             :   NS_IMETHOD ParseURL(const char * spec, int32_t specLen, uint32_t *schemePos, int32_t *schemeLen, uint32_t *authorityPos, int32_t *authorityLen, uint32_t *pathPos, int32_t *pathLen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseURL(spec, specLen, schemePos, schemeLen, authorityPos, authorityLen, pathPos, pathLen); } \
      89             :   NS_IMETHOD ParseAuthority(const char * authority, int32_t authorityLen, uint32_t *usernamePos, int32_t *usernameLen, uint32_t *passwordPos, int32_t *passwordLen, uint32_t *hostnamePos, int32_t *hostnameLen, int32_t *port) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseAuthority(authority, authorityLen, usernamePos, usernameLen, passwordPos, passwordLen, hostnamePos, hostnameLen, port); } \
      90             :   NS_IMETHOD ParseUserInfo(const char * userinfo, int32_t userinfoLen, uint32_t *usernamePos, int32_t *usernameLen, uint32_t *passwordPos, int32_t *passwordLen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseUserInfo(userinfo, userinfoLen, usernamePos, usernameLen, passwordPos, passwordLen); } \
      91             :   NS_IMETHOD ParseServerInfo(const char * serverinfo, int32_t serverinfoLen, uint32_t *hostnamePos, int32_t *hostnameLen, int32_t *port) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseServerInfo(serverinfo, serverinfoLen, hostnamePos, hostnameLen, port); } \
      92             :   NS_IMETHOD ParsePath(const char * path, int32_t pathLen, uint32_t *filepathPos, int32_t *filepathLen, uint32_t *queryPos, int32_t *queryLen, uint32_t *refPos, int32_t *refLen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParsePath(path, pathLen, filepathPos, filepathLen, queryPos, queryLen, refPos, refLen); } \
      93             :   NS_IMETHOD ParseFilePath(const char * filepath, int32_t filepathLen, uint32_t *directoryPos, int32_t *directoryLen, uint32_t *basenamePos, int32_t *basenameLen, uint32_t *extensionPos, int32_t *extensionLen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseFilePath(filepath, filepathLen, directoryPos, directoryLen, basenamePos, basenameLen, extensionPos, extensionLen); } \
      94             :   NS_IMETHOD ParseFileName(const char * filename, int32_t filenameLen, uint32_t *basenamePos, int32_t *basenameLen, uint32_t *extensionPos, int32_t *extensionLen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseFileName(filename, filenameLen, basenamePos, basenameLen, extensionPos, extensionLen); } 
      95             : 
      96             : #if 0
      97             : /* Use the code below as a template for the implementation class for this interface. */
      98             : 
      99             : /* Header file */
     100             : class nsURLParser : public nsIURLParser
     101             : {
     102             : public:
     103             :   NS_DECL_ISUPPORTS
     104             :   NS_DECL_NSIURLPARSER
     105             : 
     106             :   nsURLParser();
     107             : 
     108             : private:
     109             :   ~nsURLParser();
     110             : 
     111             : protected:
     112             :   /* additional members */
     113             : };
     114             : 
     115             : /* Implementation file */
     116             : NS_IMPL_ISUPPORTS(nsURLParser, nsIURLParser)
     117             : 
     118             : nsURLParser::nsURLParser()
     119             : {
     120             :   /* member initializers and constructor code */
     121             : }
     122             : 
     123             : nsURLParser::~nsURLParser()
     124             : {
     125             :   /* destructor code */
     126             : }
     127             : 
     128             : /* void parseURL (in string spec, in long specLen, out unsigned long schemePos, out long schemeLen, out unsigned long authorityPos, out long authorityLen, out unsigned long pathPos, out long pathLen); */
     129             : NS_IMETHODIMP nsURLParser::ParseURL(const char * spec, int32_t specLen, uint32_t *schemePos, int32_t *schemeLen, uint32_t *authorityPos, int32_t *authorityLen, uint32_t *pathPos, int32_t *pathLen)
     130             : {
     131             :     return NS_ERROR_NOT_IMPLEMENTED;
     132             : }
     133             : 
     134             : /* void parseAuthority (in string authority, in long authorityLen, out unsigned long usernamePos, out long usernameLen, out unsigned long passwordPos, out long passwordLen, out unsigned long hostnamePos, out long hostnameLen, out long port); */
     135             : NS_IMETHODIMP nsURLParser::ParseAuthority(const char * authority, int32_t authorityLen, uint32_t *usernamePos, int32_t *usernameLen, uint32_t *passwordPos, int32_t *passwordLen, uint32_t *hostnamePos, int32_t *hostnameLen, int32_t *port)
     136             : {
     137             :     return NS_ERROR_NOT_IMPLEMENTED;
     138             : }
     139             : 
     140             : /* void parseUserInfo (in string userinfo, in long userinfoLen, out unsigned long usernamePos, out long usernameLen, out unsigned long passwordPos, out long passwordLen); */
     141             : NS_IMETHODIMP nsURLParser::ParseUserInfo(const char * userinfo, int32_t userinfoLen, uint32_t *usernamePos, int32_t *usernameLen, uint32_t *passwordPos, int32_t *passwordLen)
     142             : {
     143             :     return NS_ERROR_NOT_IMPLEMENTED;
     144             : }
     145             : 
     146             : /* void parseServerInfo (in string serverinfo, in long serverinfoLen, out unsigned long hostnamePos, out long hostnameLen, out long port); */
     147             : NS_IMETHODIMP nsURLParser::ParseServerInfo(const char * serverinfo, int32_t serverinfoLen, uint32_t *hostnamePos, int32_t *hostnameLen, int32_t *port)
     148             : {
     149             :     return NS_ERROR_NOT_IMPLEMENTED;
     150             : }
     151             : 
     152             : /* void parsePath (in string path, in long pathLen, out unsigned long filepathPos, out long filepathLen, out unsigned long queryPos, out long queryLen, out unsigned long refPos, out long refLen); */
     153             : NS_IMETHODIMP nsURLParser::ParsePath(const char * path, int32_t pathLen, uint32_t *filepathPos, int32_t *filepathLen, uint32_t *queryPos, int32_t *queryLen, uint32_t *refPos, int32_t *refLen)
     154             : {
     155             :     return NS_ERROR_NOT_IMPLEMENTED;
     156             : }
     157             : 
     158             : /* void parseFilePath (in string filepath, in long filepathLen, out unsigned long directoryPos, out long directoryLen, out unsigned long basenamePos, out long basenameLen, out unsigned long extensionPos, out long extensionLen); */
     159             : NS_IMETHODIMP nsURLParser::ParseFilePath(const char * filepath, int32_t filepathLen, uint32_t *directoryPos, int32_t *directoryLen, uint32_t *basenamePos, int32_t *basenameLen, uint32_t *extensionPos, int32_t *extensionLen)
     160             : {
     161             :     return NS_ERROR_NOT_IMPLEMENTED;
     162             : }
     163             : 
     164             : /* void parseFileName (in string filename, in long filenameLen, out unsigned long basenamePos, out long basenameLen, out unsigned long extensionPos, out long extensionLen); */
     165             : NS_IMETHODIMP nsURLParser::ParseFileName(const char * filename, int32_t filenameLen, uint32_t *basenamePos, int32_t *basenameLen, uint32_t *extensionPos, int32_t *extensionLen)
     166             : {
     167             :     return NS_ERROR_NOT_IMPLEMENTED;
     168             : }
     169             : 
     170             : /* End of implementation class template. */
     171             : #endif
     172             : 
     173             : // url parser key for use with the category manager
     174             : // mapping from scheme to url parser.
     175             : #define NS_IURLPARSER_KEY "@mozilla.org/urlparser;1"
     176             : 
     177             : #endif /* __gen_nsIURLParser_h__ */

Generated by: LCOV version 1.13