Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/nsIRequestObserver.h
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /src/mozilla-central/netwerk/base/nsIRequestObserver.idl
3
 */
4
5
#ifndef __gen_nsIRequestObserver_h__
6
#define __gen_nsIRequestObserver_h__
7
8
9
#ifndef __gen_nsISupports_h__
10
#include "nsISupports.h"
11
#endif
12
13
#include "js/GCAnnotations.h"
14
15
/* For IDL files that don't want to include root IDL files. */
16
#ifndef NS_NO_VTABLE
17
#define NS_NO_VTABLE
18
#endif
19
class nsIRequest; /* forward declaration */
20
21
22
/* starting interface:    nsIRequestObserver */
23
#define NS_IREQUESTOBSERVER_IID_STR "fd91e2e0-1481-11d3-9333-00104ba0fd40"
24
25
#define NS_IREQUESTOBSERVER_IID \
26
  {0xfd91e2e0, 0x1481, 0x11d3, \
27
    { 0x93, 0x33, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40 }}
28
29
class NS_NO_VTABLE nsIRequestObserver : public nsISupports {
30
 public:
31
32
  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IREQUESTOBSERVER_IID)
33
34
  /* void onStartRequest (in nsIRequest aRequest, in nsISupports aContext); */
35
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnStartRequest(nsIRequest *aRequest, nsISupports *aContext) = 0;
36
37
  /* void onStopRequest (in nsIRequest aRequest, in nsISupports aContext, in nsresult aStatusCode); */
38
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode) = 0;
39
40
};
41
42
  NS_DEFINE_STATIC_IID_ACCESSOR(nsIRequestObserver, NS_IREQUESTOBSERVER_IID)
43
44
/* Use this macro when declaring classes that implement this interface. */
45
#define NS_DECL_NSIREQUESTOBSERVER \
46
  NS_IMETHOD OnStartRequest(nsIRequest *aRequest, nsISupports *aContext) override; \
47
  NS_IMETHOD OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode) override; 
48
49
/* Use this macro when declaring the members of this interface when the
50
   class doesn't implement the interface. This is useful for forwarding. */
51
#define NS_DECL_NON_VIRTUAL_NSIREQUESTOBSERVER \
52
  nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext); \
53
  nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode); 
54
55
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
56
#define NS_FORWARD_NSIREQUESTOBSERVER(_to) \
57
0
  NS_IMETHOD OnStartRequest(nsIRequest *aRequest, nsISupports *aContext) override { return _to OnStartRequest(aRequest, aContext); } \
Unexecuted instantiation: ObjectInterfaceRequestorShim::OnStartRequest(nsIRequest*, nsISupports*)
Unexecuted instantiation: mozilla::dom::nsXMLHttpRequestXPCOMifier::OnStartRequest(nsIRequest*, nsISupports*)
58
0
  NS_IMETHOD OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode) override { return _to OnStopRequest(aRequest, aContext, aStatusCode); } 
Unexecuted instantiation: ObjectInterfaceRequestorShim::OnStopRequest(nsIRequest*, nsISupports*, nsresult)
Unexecuted instantiation: mozilla::dom::nsXMLHttpRequestXPCOMifier::OnStopRequest(nsIRequest*, nsISupports*, nsresult)
59
60
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
61
#define NS_FORWARD_SAFE_NSIREQUESTOBSERVER(_to) \
62
0
  NS_IMETHOD OnStartRequest(nsIRequest *aRequest, nsISupports *aContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStartRequest(aRequest, aContext); } \
63
0
  NS_IMETHOD OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStopRequest(aRequest, aContext, aStatusCode); } 
64
65
66
#endif /* __gen_nsIRequestObserver_h__ */