Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/nsISpeculativeConnect.h
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /src/mozilla-central/netwerk/base/nsISpeculativeConnect.idl
3
 */
4
5
#ifndef __gen_nsISpeculativeConnect_h__
6
#define __gen_nsISpeculativeConnect_h__
7
8
9
#ifndef __gen_nsISupports_h__
10
#include "nsISupports.h"
11
#endif
12
13
#include "js/GCAnnotations.h"
14
15
#include "mozilla/AlreadyAddRefed.h"
16
#include "mozilla/Assertions.h"
17
#include "mozilla/DebugOnly.h"
18
19
/* For IDL files that don't want to include root IDL files. */
20
#ifndef NS_NO_VTABLE
21
#define NS_NO_VTABLE
22
#endif
23
class nsIPrincipal; /* forward declaration */
24
25
class nsIURI; /* forward declaration */
26
27
class nsIInterfaceRequestor; /* forward declaration */
28
29
30
/* starting interface:    nsISpeculativeConnect */
31
#define NS_ISPECULATIVECONNECT_IID_STR "d74a17ac-5b8a-4824-a309-b1f04a3c4aed"
32
33
#define NS_ISPECULATIVECONNECT_IID \
34
  {0xd74a17ac, 0x5b8a, 0x4824, \
35
    { 0xa3, 0x09, 0xb1, 0xf0, 0x4a, 0x3c, 0x4a, 0xed }}
36
37
class NS_NO_VTABLE nsISpeculativeConnect : public nsISupports {
38
 public:
39
40
  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISPECULATIVECONNECT_IID)
41
42
  /* void speculativeConnect (in nsIURI aURI, in nsIInterfaceRequestor aCallbacks); */
43
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SpeculativeConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks) = 0;
44
45
  /* void speculativeConnect2 (in nsIURI aURI, in nsIPrincipal aPrincipal, in nsIInterfaceRequestor aCallbacks); */
46
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SpeculativeConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks) = 0;
47
48
  /* void speculativeAnonymousConnect (in nsIURI aURI, in nsIInterfaceRequestor aCallbacks); */
49
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SpeculativeAnonymousConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks) = 0;
50
51
  /* void speculativeAnonymousConnect2 (in nsIURI aURI, in nsIPrincipal aPrincipal, in nsIInterfaceRequestor aCallbacks); */
52
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SpeculativeAnonymousConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks) = 0;
53
54
};
55
56
  NS_DEFINE_STATIC_IID_ACCESSOR(nsISpeculativeConnect, NS_ISPECULATIVECONNECT_IID)
57
58
/* Use this macro when declaring classes that implement this interface. */
59
#define NS_DECL_NSISPECULATIVECONNECT \
60
  NS_IMETHOD SpeculativeConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks) override; \
61
  NS_IMETHOD SpeculativeConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks) override; \
62
  NS_IMETHOD SpeculativeAnonymousConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks) override; \
63
  NS_IMETHOD SpeculativeAnonymousConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks) 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_NSISPECULATIVECONNECT \
68
  nsresult SpeculativeConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks); \
69
  nsresult SpeculativeConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks); \
70
  nsresult SpeculativeAnonymousConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks); \
71
  nsresult SpeculativeAnonymousConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks); 
72
73
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
74
#define NS_FORWARD_NSISPECULATIVECONNECT(_to) \
75
0
  NS_IMETHOD SpeculativeConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks) override { return _to SpeculativeConnect(aURI, aCallbacks); } \
76
0
  NS_IMETHOD SpeculativeConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks) override { return _to SpeculativeConnect2(aURI, aPrincipal, aCallbacks); } \
77
0
  NS_IMETHOD SpeculativeAnonymousConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks) override { return _to SpeculativeAnonymousConnect(aURI, aCallbacks); } \
78
0
  NS_IMETHOD SpeculativeAnonymousConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks) override { return _to SpeculativeAnonymousConnect2(aURI, aPrincipal, aCallbacks); } 
79
80
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
81
#define NS_FORWARD_SAFE_NSISPECULATIVECONNECT(_to) \
82
  NS_IMETHOD SpeculativeConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SpeculativeConnect(aURI, aCallbacks); } \
83
  NS_IMETHOD SpeculativeConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SpeculativeConnect2(aURI, aPrincipal, aCallbacks); } \
84
  NS_IMETHOD SpeculativeAnonymousConnect(nsIURI *aURI, nsIInterfaceRequestor *aCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SpeculativeAnonymousConnect(aURI, aCallbacks); } \
85
  NS_IMETHOD SpeculativeAnonymousConnect2(nsIURI *aURI, nsIPrincipal *aPrincipal, nsIInterfaceRequestor *aCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SpeculativeAnonymousConnect2(aURI, aPrincipal, aCallbacks); } 
86
87
88
/* starting interface:    nsISpeculativeConnectionOverrider */
89
#define NS_ISPECULATIVECONNECTIONOVERRIDER_IID_STR "1040ebe3-6ed1-45a6-8587-995e082518d7"
90
91
#define NS_ISPECULATIVECONNECTIONOVERRIDER_IID \
92
  {0x1040ebe3, 0x6ed1, 0x45a6, \
93
    { 0x85, 0x87, 0x99, 0x5e, 0x08, 0x25, 0x18, 0xd7 }}
94
95
class NS_NO_VTABLE nsISpeculativeConnectionOverrider : public nsISupports {
96
 public:
97
98
  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISPECULATIVECONNECTIONOVERRIDER_IID)
99
100
  /* [infallible] readonly attribute unsigned long parallelSpeculativeConnectLimit; */
101
  NS_IMETHOD GetParallelSpeculativeConnectLimit(uint32_t *aParallelSpeculativeConnectLimit) = 0;
102
  inline uint32_t GetParallelSpeculativeConnectLimit()
103
0
  {
104
0
    uint32_t result;
105
0
    mozilla::DebugOnly<nsresult> rv = GetParallelSpeculativeConnectLimit(&result);
106
0
    MOZ_ASSERT(NS_SUCCEEDED(rv));
107
0
    return result;
108
0
  }
109
110
  /* [infallible] readonly attribute boolean ignoreIdle; */
111
  NS_IMETHOD GetIgnoreIdle(bool *aIgnoreIdle) = 0;
112
  inline bool GetIgnoreIdle()
113
0
  {
114
0
    bool result;
115
0
    mozilla::DebugOnly<nsresult> rv = GetIgnoreIdle(&result);
116
0
    MOZ_ASSERT(NS_SUCCEEDED(rv));
117
0
    return result;
118
0
  }
119
120
  /* [infallible] readonly attribute boolean isFromPredictor; */
121
  NS_IMETHOD GetIsFromPredictor(bool *aIsFromPredictor) = 0;
122
  inline bool GetIsFromPredictor()
123
0
  {
124
0
    bool result;
125
0
    mozilla::DebugOnly<nsresult> rv = GetIsFromPredictor(&result);
126
0
    MOZ_ASSERT(NS_SUCCEEDED(rv));
127
0
    return result;
128
0
  }
129
130
  /* [infallible] readonly attribute boolean allow1918; */
131
  NS_IMETHOD GetAllow1918(bool *aAllow1918) = 0;
132
  inline bool GetAllow1918()
133
0
  {
134
0
    bool result;
135
0
    mozilla::DebugOnly<nsresult> rv = GetAllow1918(&result);
136
0
    MOZ_ASSERT(NS_SUCCEEDED(rv));
137
0
    return result;
138
0
  }
139
140
};
141
142
  NS_DEFINE_STATIC_IID_ACCESSOR(nsISpeculativeConnectionOverrider, NS_ISPECULATIVECONNECTIONOVERRIDER_IID)
143
144
/* Use this macro when declaring classes that implement this interface. */
145
#define NS_DECL_NSISPECULATIVECONNECTIONOVERRIDER \
146
  using nsISpeculativeConnectionOverrider::GetParallelSpeculativeConnectLimit; \
147
  NS_IMETHOD GetParallelSpeculativeConnectLimit(uint32_t *aParallelSpeculativeConnectLimit) override; \
148
  using nsISpeculativeConnectionOverrider::GetIgnoreIdle; \
149
  NS_IMETHOD GetIgnoreIdle(bool *aIgnoreIdle) override; \
150
  using nsISpeculativeConnectionOverrider::GetIsFromPredictor; \
151
  NS_IMETHOD GetIsFromPredictor(bool *aIsFromPredictor) override; \
152
  using nsISpeculativeConnectionOverrider::GetAllow1918; \
153
  NS_IMETHOD GetAllow1918(bool *aAllow1918) override; 
154
155
/* Use this macro when declaring the members of this interface when the
156
   class doesn't implement the interface. This is useful for forwarding. */
157
#define NS_DECL_NON_VIRTUAL_NSISPECULATIVECONNECTIONOVERRIDER \
158
  using nsISpeculativeConnectionOverrider::GetParallelSpeculativeConnectLimit; \
159
  nsresult GetParallelSpeculativeConnectLimit(uint32_t *aParallelSpeculativeConnectLimit); \
160
  using nsISpeculativeConnectionOverrider::GetIgnoreIdle; \
161
  nsresult GetIgnoreIdle(bool *aIgnoreIdle); \
162
  using nsISpeculativeConnectionOverrider::GetIsFromPredictor; \
163
  nsresult GetIsFromPredictor(bool *aIsFromPredictor); \
164
  using nsISpeculativeConnectionOverrider::GetAllow1918; \
165
  nsresult GetAllow1918(bool *aAllow1918); 
166
167
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
168
#define NS_FORWARD_NSISPECULATIVECONNECTIONOVERRIDER(_to) \
169
  using nsISpeculativeConnectionOverrider::GetParallelSpeculativeConnectLimit; \
170
  NS_IMETHOD GetParallelSpeculativeConnectLimit(uint32_t *aParallelSpeculativeConnectLimit) override { return _to GetParallelSpeculativeConnectLimit(aParallelSpeculativeConnectLimit); } \
171
  using nsISpeculativeConnectionOverrider::GetIgnoreIdle; \
172
  NS_IMETHOD GetIgnoreIdle(bool *aIgnoreIdle) override { return _to GetIgnoreIdle(aIgnoreIdle); } \
173
  using nsISpeculativeConnectionOverrider::GetIsFromPredictor; \
174
  NS_IMETHOD GetIsFromPredictor(bool *aIsFromPredictor) override { return _to GetIsFromPredictor(aIsFromPredictor); } \
175
  using nsISpeculativeConnectionOverrider::GetAllow1918; \
176
  NS_IMETHOD GetAllow1918(bool *aAllow1918) override { return _to GetAllow1918(aAllow1918); } 
177
178
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
179
#define NS_FORWARD_SAFE_NSISPECULATIVECONNECTIONOVERRIDER(_to) \
180
  NS_IMETHOD GetParallelSpeculativeConnectLimit(uint32_t *aParallelSpeculativeConnectLimit) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParallelSpeculativeConnectLimit(aParallelSpeculativeConnectLimit); } \
181
  NS_IMETHOD GetIgnoreIdle(bool *aIgnoreIdle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIgnoreIdle(aIgnoreIdle); } \
182
  NS_IMETHOD GetIsFromPredictor(bool *aIsFromPredictor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsFromPredictor(aIsFromPredictor); } \
183
  NS_IMETHOD GetAllow1918(bool *aAllow1918) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllow1918(aAllow1918); } 
184
185
186
#endif /* __gen_nsISpeculativeConnect_h__ */