Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/nsIChannelEventSink.h
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /src/mozilla-central/netwerk/base/nsIChannelEventSink.idl
3
 */
4
5
#ifndef __gen_nsIChannelEventSink_h__
6
#define __gen_nsIChannelEventSink_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 nsIChannel; /* forward declaration */
20
21
class nsIAsyncVerifyRedirectCallback; /* forward declaration */
22
23
24
/* starting interface:    nsIChannelEventSink */
25
#define NS_ICHANNELEVENTSINK_IID_STR "0197720d-37ed-4e75-8956-d0d296e4d8a6"
26
27
#define NS_ICHANNELEVENTSINK_IID \
28
  {0x0197720d, 0x37ed, 0x4e75, \
29
    { 0x89, 0x56, 0xd0, 0xd2, 0x96, 0xe4, 0xd8, 0xa6 }}
30
31
class NS_NO_VTABLE nsIChannelEventSink : public nsISupports {
32
 public:
33
34
  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICHANNELEVENTSINK_IID)
35
36
  enum {
37
    REDIRECT_TEMPORARY = 1U,
38
    REDIRECT_PERMANENT = 2U,
39
    REDIRECT_INTERNAL = 4U,
40
    REDIRECT_STS_UPGRADE = 8U
41
  };
42
43
  /* void asyncOnChannelRedirect (in nsIChannel oldChannel, in nsIChannel newChannel, in unsigned long flags, in nsIAsyncVerifyRedirectCallback callback); */
44
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, uint32_t flags, nsIAsyncVerifyRedirectCallback *callback) = 0;
45
46
};
47
48
  NS_DEFINE_STATIC_IID_ACCESSOR(nsIChannelEventSink, NS_ICHANNELEVENTSINK_IID)
49
50
/* Use this macro when declaring classes that implement this interface. */
51
#define NS_DECL_NSICHANNELEVENTSINK \
52
  NS_IMETHOD AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, uint32_t flags, nsIAsyncVerifyRedirectCallback *callback) override; 
53
54
/* Use this macro when declaring the members of this interface when the
55
   class doesn't implement the interface. This is useful for forwarding. */
56
#define NS_DECL_NON_VIRTUAL_NSICHANNELEVENTSINK \
57
  nsresult AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, uint32_t flags, nsIAsyncVerifyRedirectCallback *callback); 
58
59
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
60
#define NS_FORWARD_NSICHANNELEVENTSINK(_to) \
61
0
  NS_IMETHOD AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, uint32_t flags, nsIAsyncVerifyRedirectCallback *callback) override { return _to AsyncOnChannelRedirect(oldChannel, newChannel, flags, callback); } 
Unexecuted instantiation: nsExternalResourceMap::LoadgroupCallbacks::nsIChannelEventSinkShim::AsyncOnChannelRedirect(nsIChannel*, nsIChannel*, unsigned int, nsIAsyncVerifyRedirectCallback*)
Unexecuted instantiation: ObjectInterfaceRequestorShim::AsyncOnChannelRedirect(nsIChannel*, nsIChannel*, unsigned int, nsIAsyncVerifyRedirectCallback*)
Unexecuted instantiation: mozilla::dom::nsXMLHttpRequestXPCOMifier::AsyncOnChannelRedirect(nsIChannel*, nsIChannel*, unsigned int, nsIAsyncVerifyRedirectCallback*)
62
63
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
64
#define NS_FORWARD_SAFE_NSICHANNELEVENTSINK(_to) \
65
  NS_IMETHOD AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, uint32_t flags, nsIAsyncVerifyRedirectCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncOnChannelRedirect(oldChannel, newChannel, flags, callback); } 
66
67
68
#endif /* __gen_nsIChannelEventSink_h__ */