This file is indexed.

/usr/include/thunderbird/nsIStreamingProtocolController.h is in thunderbird-dev 1:52.8.0-1~deb8u1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIStreamingProtocolController.idl
 */

#ifndef __gen_nsIStreamingProtocolController_h__
#define __gen_nsIStreamingProtocolController_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIURI; /* forward declaration */

#define MEDIASTREAM_FRAMETYPE_NORMAL          0x00000001
#define MEDIASTREAM_FRAMETYPE_DISCONTINUITY   0x00000002
#define MEDIASTREAM_FRAMETYPE_END_OF_STREAM   0x00000004

/* starting interface:    nsIStreamingProtocolMetaData */
#define NS_ISTREAMINGPROTOCOLMETADATA_IID_STR "294adb30-856c-11e2-9e96-0800200c9a66"

#define NS_ISTREAMINGPROTOCOLMETADATA_IID \
  {0x294adb30, 0x856c, 0x11e2, \
    { 0x9e, 0x96, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}

class NS_NO_VTABLE nsIStreamingProtocolMetaData : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTREAMINGPROTOCOLMETADATA_IID)

  /* attribute uint32_t frameType; */
  NS_IMETHOD GetFrameType(uint32_t *aFrameType) = 0;
  NS_IMETHOD SetFrameType(uint32_t aFrameType) = 0;

  /* attribute uint32_t totalTracks; */
  NS_IMETHOD GetTotalTracks(uint32_t *aTotalTracks) = 0;
  NS_IMETHOD SetTotalTracks(uint32_t aTotalTracks) = 0;

  /* attribute ACString mimeType; */
  NS_IMETHOD GetMimeType(nsACString & aMimeType) = 0;
  NS_IMETHOD SetMimeType(const nsACString & aMimeType) = 0;

  /* attribute unsigned long width; */
  NS_IMETHOD GetWidth(uint32_t *aWidth) = 0;
  NS_IMETHOD SetWidth(uint32_t aWidth) = 0;

  /* attribute unsigned long height; */
  NS_IMETHOD GetHeight(uint32_t *aHeight) = 0;
  NS_IMETHOD SetHeight(uint32_t aHeight) = 0;

  /* attribute unsigned long long duration; */
  NS_IMETHOD GetDuration(uint64_t *aDuration) = 0;
  NS_IMETHOD SetDuration(uint64_t aDuration) = 0;

  /* attribute unsigned long sampleRate; */
  NS_IMETHOD GetSampleRate(uint32_t *aSampleRate) = 0;
  NS_IMETHOD SetSampleRate(uint32_t aSampleRate) = 0;

  /* attribute unsigned long long timeStamp; */
  NS_IMETHOD GetTimeStamp(uint64_t *aTimeStamp) = 0;
  NS_IMETHOD SetTimeStamp(uint64_t aTimeStamp) = 0;

  /* attribute unsigned long channelCount; */
  NS_IMETHOD GetChannelCount(uint32_t *aChannelCount) = 0;
  NS_IMETHOD SetChannelCount(uint32_t aChannelCount) = 0;

  /* attribute ACString esdsData; */
  NS_IMETHOD GetEsdsData(nsACString & aEsdsData) = 0;
  NS_IMETHOD SetEsdsData(const nsACString & aEsdsData) = 0;

  /* attribute ACString avccData; */
  NS_IMETHOD GetAvccData(nsACString & aAvccData) = 0;
  NS_IMETHOD SetAvccData(const nsACString & aAvccData) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIStreamingProtocolMetaData, NS_ISTREAMINGPROTOCOLMETADATA_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISTREAMINGPROTOCOLMETADATA \
  NS_IMETHOD GetFrameType(uint32_t *aFrameType) override; \
  NS_IMETHOD SetFrameType(uint32_t aFrameType) override; \
  NS_IMETHOD GetTotalTracks(uint32_t *aTotalTracks) override; \
  NS_IMETHOD SetTotalTracks(uint32_t aTotalTracks) override; \
  NS_IMETHOD GetMimeType(nsACString & aMimeType) override; \
  NS_IMETHOD SetMimeType(const nsACString & aMimeType) override; \
  NS_IMETHOD GetWidth(uint32_t *aWidth) override; \
  NS_IMETHOD SetWidth(uint32_t aWidth) override; \
  NS_IMETHOD GetHeight(uint32_t *aHeight) override; \
  NS_IMETHOD SetHeight(uint32_t aHeight) override; \
  NS_IMETHOD GetDuration(uint64_t *aDuration) override; \
  NS_IMETHOD SetDuration(uint64_t aDuration) override; \
  NS_IMETHOD GetSampleRate(uint32_t *aSampleRate) override; \
  NS_IMETHOD SetSampleRate(uint32_t aSampleRate) override; \
  NS_IMETHOD GetTimeStamp(uint64_t *aTimeStamp) override; \
  NS_IMETHOD SetTimeStamp(uint64_t aTimeStamp) override; \
  NS_IMETHOD GetChannelCount(uint32_t *aChannelCount) override; \
  NS_IMETHOD SetChannelCount(uint32_t aChannelCount) override; \
  NS_IMETHOD GetEsdsData(nsACString & aEsdsData) override; \
  NS_IMETHOD SetEsdsData(const nsACString & aEsdsData) override; \
  NS_IMETHOD GetAvccData(nsACString & aAvccData) override; \
  NS_IMETHOD SetAvccData(const nsACString & aAvccData) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSISTREAMINGPROTOCOLMETADATA \
  NS_METHOD GetFrameType(uint32_t *aFrameType); \
  NS_METHOD SetFrameType(uint32_t aFrameType); \
  NS_METHOD GetTotalTracks(uint32_t *aTotalTracks); \
  NS_METHOD SetTotalTracks(uint32_t aTotalTracks); \
  NS_METHOD GetMimeType(nsACString & aMimeType); \
  NS_METHOD SetMimeType(const nsACString & aMimeType); \
  NS_METHOD GetWidth(uint32_t *aWidth); \
  NS_METHOD SetWidth(uint32_t aWidth); \
  NS_METHOD GetHeight(uint32_t *aHeight); \
  NS_METHOD SetHeight(uint32_t aHeight); \
  NS_METHOD GetDuration(uint64_t *aDuration); \
  NS_METHOD SetDuration(uint64_t aDuration); \
  NS_METHOD GetSampleRate(uint32_t *aSampleRate); \
  NS_METHOD SetSampleRate(uint32_t aSampleRate); \
  NS_METHOD GetTimeStamp(uint64_t *aTimeStamp); \
  NS_METHOD SetTimeStamp(uint64_t aTimeStamp); \
  NS_METHOD GetChannelCount(uint32_t *aChannelCount); \
  NS_METHOD SetChannelCount(uint32_t aChannelCount); \
  NS_METHOD GetEsdsData(nsACString & aEsdsData); \
  NS_METHOD SetEsdsData(const nsACString & aEsdsData); \
  NS_METHOD GetAvccData(nsACString & aAvccData); \
  NS_METHOD SetAvccData(const nsACString & aAvccData); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISTREAMINGPROTOCOLMETADATA(_to) \
  NS_IMETHOD GetFrameType(uint32_t *aFrameType) override { return _to GetFrameType(aFrameType); } \
  NS_IMETHOD SetFrameType(uint32_t aFrameType) override { return _to SetFrameType(aFrameType); } \
  NS_IMETHOD GetTotalTracks(uint32_t *aTotalTracks) override { return _to GetTotalTracks(aTotalTracks); } \
  NS_IMETHOD SetTotalTracks(uint32_t aTotalTracks) override { return _to SetTotalTracks(aTotalTracks); } \
  NS_IMETHOD GetMimeType(nsACString & aMimeType) override { return _to GetMimeType(aMimeType); } \
  NS_IMETHOD SetMimeType(const nsACString & aMimeType) override { return _to SetMimeType(aMimeType); } \
  NS_IMETHOD GetWidth(uint32_t *aWidth) override { return _to GetWidth(aWidth); } \
  NS_IMETHOD SetWidth(uint32_t aWidth) override { return _to SetWidth(aWidth); } \
  NS_IMETHOD GetHeight(uint32_t *aHeight) override { return _to GetHeight(aHeight); } \
  NS_IMETHOD SetHeight(uint32_t aHeight) override { return _to SetHeight(aHeight); } \
  NS_IMETHOD GetDuration(uint64_t *aDuration) override { return _to GetDuration(aDuration); } \
  NS_IMETHOD SetDuration(uint64_t aDuration) override { return _to SetDuration(aDuration); } \
  NS_IMETHOD GetSampleRate(uint32_t *aSampleRate) override { return _to GetSampleRate(aSampleRate); } \
  NS_IMETHOD SetSampleRate(uint32_t aSampleRate) override { return _to SetSampleRate(aSampleRate); } \
  NS_IMETHOD GetTimeStamp(uint64_t *aTimeStamp) override { return _to GetTimeStamp(aTimeStamp); } \
  NS_IMETHOD SetTimeStamp(uint64_t aTimeStamp) override { return _to SetTimeStamp(aTimeStamp); } \
  NS_IMETHOD GetChannelCount(uint32_t *aChannelCount) override { return _to GetChannelCount(aChannelCount); } \
  NS_IMETHOD SetChannelCount(uint32_t aChannelCount) override { return _to SetChannelCount(aChannelCount); } \
  NS_IMETHOD GetEsdsData(nsACString & aEsdsData) override { return _to GetEsdsData(aEsdsData); } \
  NS_IMETHOD SetEsdsData(const nsACString & aEsdsData) override { return _to SetEsdsData(aEsdsData); } \
  NS_IMETHOD GetAvccData(nsACString & aAvccData) override { return _to GetAvccData(aAvccData); } \
  NS_IMETHOD SetAvccData(const nsACString & aAvccData) override { return _to SetAvccData(aAvccData); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISTREAMINGPROTOCOLMETADATA(_to) \
  NS_IMETHOD GetFrameType(uint32_t *aFrameType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFrameType(aFrameType); } \
  NS_IMETHOD SetFrameType(uint32_t aFrameType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFrameType(aFrameType); } \
  NS_IMETHOD GetTotalTracks(uint32_t *aTotalTracks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTotalTracks(aTotalTracks); } \
  NS_IMETHOD SetTotalTracks(uint32_t aTotalTracks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTotalTracks(aTotalTracks); } \
  NS_IMETHOD GetMimeType(nsACString & aMimeType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMimeType(aMimeType); } \
  NS_IMETHOD SetMimeType(const nsACString & aMimeType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMimeType(aMimeType); } \
  NS_IMETHOD GetWidth(uint32_t *aWidth) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidth(aWidth); } \
  NS_IMETHOD SetWidth(uint32_t aWidth) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWidth(aWidth); } \
  NS_IMETHOD GetHeight(uint32_t *aHeight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeight(aHeight); } \
  NS_IMETHOD SetHeight(uint32_t aHeight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHeight(aHeight); } \
  NS_IMETHOD GetDuration(uint64_t *aDuration) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDuration(aDuration); } \
  NS_IMETHOD SetDuration(uint64_t aDuration) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDuration(aDuration); } \
  NS_IMETHOD GetSampleRate(uint32_t *aSampleRate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSampleRate(aSampleRate); } \
  NS_IMETHOD SetSampleRate(uint32_t aSampleRate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSampleRate(aSampleRate); } \
  NS_IMETHOD GetTimeStamp(uint64_t *aTimeStamp) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimeStamp(aTimeStamp); } \
  NS_IMETHOD SetTimeStamp(uint64_t aTimeStamp) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTimeStamp(aTimeStamp); } \
  NS_IMETHOD GetChannelCount(uint32_t *aChannelCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChannelCount(aChannelCount); } \
  NS_IMETHOD SetChannelCount(uint32_t aChannelCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetChannelCount(aChannelCount); } \
  NS_IMETHOD GetEsdsData(nsACString & aEsdsData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEsdsData(aEsdsData); } \
  NS_IMETHOD SetEsdsData(const nsACString & aEsdsData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEsdsData(aEsdsData); } \
  NS_IMETHOD GetAvccData(nsACString & aAvccData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvccData(aAvccData); } \
  NS_IMETHOD SetAvccData(const nsACString & aAvccData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAvccData(aAvccData); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsStreamingProtocolMetaData : public nsIStreamingProtocolMetaData
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISTREAMINGPROTOCOLMETADATA

  nsStreamingProtocolMetaData();

private:
  ~nsStreamingProtocolMetaData();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsStreamingProtocolMetaData, nsIStreamingProtocolMetaData)

nsStreamingProtocolMetaData::nsStreamingProtocolMetaData()
{
  /* member initializers and constructor code */
}

nsStreamingProtocolMetaData::~nsStreamingProtocolMetaData()
{
  /* destructor code */
}

/* attribute uint32_t frameType; */
NS_IMETHODIMP nsStreamingProtocolMetaData::GetFrameType(uint32_t *aFrameType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsStreamingProtocolMetaData::SetFrameType(uint32_t aFrameType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute uint32_t totalTracks; */
NS_IMETHODIMP nsStreamingProtocolMetaData::GetTotalTracks(uint32_t *aTotalTracks)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsStreamingProtocolMetaData::SetTotalTracks(uint32_t aTotalTracks)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute ACString mimeType; */
NS_IMETHODIMP nsStreamingProtocolMetaData::GetMimeType(nsACString & aMimeType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsStreamingProtocolMetaData::SetMimeType(const nsACString & aMimeType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long width; */
NS_IMETHODIMP nsStreamingProtocolMetaData::GetWidth(uint32_t *aWidth)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsStreamingProtocolMetaData::SetWidth(uint32_t aWidth)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long height; */
NS_IMETHODIMP nsStreamingProtocolMetaData::GetHeight(uint32_t *aHeight)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsStreamingProtocolMetaData::SetHeight(uint32_t aHeight)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long long duration; */
NS_IMETHODIMP nsStreamingProtocolMetaData::GetDuration(uint64_t *aDuration)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsStreamingProtocolMetaData::SetDuration(uint64_t aDuration)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long sampleRate; */
NS_IMETHODIMP nsStreamingProtocolMetaData::GetSampleRate(uint32_t *aSampleRate)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsStreamingProtocolMetaData::SetSampleRate(uint32_t aSampleRate)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long long timeStamp; */
NS_IMETHODIMP nsStreamingProtocolMetaData::GetTimeStamp(uint64_t *aTimeStamp)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsStreamingProtocolMetaData::SetTimeStamp(uint64_t aTimeStamp)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long channelCount; */
NS_IMETHODIMP nsStreamingProtocolMetaData::GetChannelCount(uint32_t *aChannelCount)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsStreamingProtocolMetaData::SetChannelCount(uint32_t aChannelCount)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute ACString esdsData; */
NS_IMETHODIMP nsStreamingProtocolMetaData::GetEsdsData(nsACString & aEsdsData)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsStreamingProtocolMetaData::SetEsdsData(const nsACString & aEsdsData)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute ACString avccData; */
NS_IMETHODIMP nsStreamingProtocolMetaData::GetAvccData(nsACString & aAvccData)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsStreamingProtocolMetaData::SetAvccData(const nsACString & aAvccData)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIStreamingProtocolListener */
#define NS_ISTREAMINGPROTOCOLLISTENER_IID_STR "c4f6b660-892e-11e2-9e96-0800200c9a66"

#define NS_ISTREAMINGPROTOCOLLISTENER_IID \
  {0xc4f6b660, 0x892e, 0x11e2, \
    { 0x9e, 0x96, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}

class NS_NO_VTABLE nsIStreamingProtocolListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTREAMINGPROTOCOLLISTENER_IID)

  /* void onMediaDataAvailable (in uint8_t index, in ACString data, in uint32_t length, in uint32_t offset, in nsIStreamingProtocolMetaData meta); */
  NS_IMETHOD OnMediaDataAvailable(uint8_t index, const nsACString & data, uint32_t length, uint32_t offset, nsIStreamingProtocolMetaData *meta) = 0;

  /* void onConnected (in uint8_t index, in nsIStreamingProtocolMetaData meta); */
  NS_IMETHOD OnConnected(uint8_t index, nsIStreamingProtocolMetaData *meta) = 0;

  /* void onDisconnected (in uint8_t index, in nsresult reason); */
  NS_IMETHOD OnDisconnected(uint8_t index, nsresult reason) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIStreamingProtocolListener, NS_ISTREAMINGPROTOCOLLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISTREAMINGPROTOCOLLISTENER \
  NS_IMETHOD OnMediaDataAvailable(uint8_t index, const nsACString & data, uint32_t length, uint32_t offset, nsIStreamingProtocolMetaData *meta) override; \
  NS_IMETHOD OnConnected(uint8_t index, nsIStreamingProtocolMetaData *meta) override; \
  NS_IMETHOD OnDisconnected(uint8_t index, nsresult reason) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSISTREAMINGPROTOCOLLISTENER \
  NS_METHOD OnMediaDataAvailable(uint8_t index, const nsACString & data, uint32_t length, uint32_t offset, nsIStreamingProtocolMetaData *meta); \
  NS_METHOD OnConnected(uint8_t index, nsIStreamingProtocolMetaData *meta); \
  NS_METHOD OnDisconnected(uint8_t index, nsresult reason); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISTREAMINGPROTOCOLLISTENER(_to) \
  NS_IMETHOD OnMediaDataAvailable(uint8_t index, const nsACString & data, uint32_t length, uint32_t offset, nsIStreamingProtocolMetaData *meta) override { return _to OnMediaDataAvailable(index, data, length, offset, meta); } \
  NS_IMETHOD OnConnected(uint8_t index, nsIStreamingProtocolMetaData *meta) override { return _to OnConnected(index, meta); } \
  NS_IMETHOD OnDisconnected(uint8_t index, nsresult reason) override { return _to OnDisconnected(index, reason); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISTREAMINGPROTOCOLLISTENER(_to) \
  NS_IMETHOD OnMediaDataAvailable(uint8_t index, const nsACString & data, uint32_t length, uint32_t offset, nsIStreamingProtocolMetaData *meta) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnMediaDataAvailable(index, data, length, offset, meta); } \
  NS_IMETHOD OnConnected(uint8_t index, nsIStreamingProtocolMetaData *meta) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnConnected(index, meta); } \
  NS_IMETHOD OnDisconnected(uint8_t index, nsresult reason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDisconnected(index, reason); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsStreamingProtocolListener : public nsIStreamingProtocolListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISTREAMINGPROTOCOLLISTENER

  nsStreamingProtocolListener();

private:
  ~nsStreamingProtocolListener();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsStreamingProtocolListener, nsIStreamingProtocolListener)

nsStreamingProtocolListener::nsStreamingProtocolListener()
{
  /* member initializers and constructor code */
}

nsStreamingProtocolListener::~nsStreamingProtocolListener()
{
  /* destructor code */
}

/* void onMediaDataAvailable (in uint8_t index, in ACString data, in uint32_t length, in uint32_t offset, in nsIStreamingProtocolMetaData meta); */
NS_IMETHODIMP nsStreamingProtocolListener::OnMediaDataAvailable(uint8_t index, const nsACString & data, uint32_t length, uint32_t offset, nsIStreamingProtocolMetaData *meta)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onConnected (in uint8_t index, in nsIStreamingProtocolMetaData meta); */
NS_IMETHODIMP nsStreamingProtocolListener::OnConnected(uint8_t index, nsIStreamingProtocolMetaData *meta)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onDisconnected (in uint8_t index, in nsresult reason); */
NS_IMETHODIMP nsStreamingProtocolListener::OnDisconnected(uint8_t index, nsresult reason)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIStreamingProtocolController */
#define NS_ISTREAMINGPROTOCOLCONTROLLER_IID_STR "4ce040f0-c50d-461f-94e2-af5a77fe13a5"

#define NS_ISTREAMINGPROTOCOLCONTROLLER_IID \
  {0x4ce040f0, 0xc50d, 0x461f, \
    { 0x94, 0xe2, 0xaf, 0x5a, 0x77, 0xfe, 0x13, 0xa5 }}

class NS_NO_VTABLE nsIStreamingProtocolController : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTREAMINGPROTOCOLCONTROLLER_IID)

  /* void init (in nsIURI aUri); */
  NS_IMETHOD Init(nsIURI *aUri) = 0;

  /* void asyncOpen (in nsIStreamingProtocolListener aListener); */
  NS_IMETHOD AsyncOpen(nsIStreamingProtocolListener *aListener) = 0;

  /* nsIStreamingProtocolMetaData getTrackMetaData (in octet index); */
  NS_IMETHOD GetTrackMetaData(uint8_t index, nsIStreamingProtocolMetaData * *_retval) = 0;

  /* void play (); */
  NS_IMETHOD Play(void) = 0;

  /* void pause (); */
  NS_IMETHOD Pause(void) = 0;

  /* void resume (); */
  NS_IMETHOD Resume(void) = 0;

  /* void suspend (); */
  NS_IMETHOD Suspend(void) = 0;

  /* void seek (in unsigned long long seekTimeUs); */
  NS_IMETHOD Seek(uint64_t seekTimeUs) = 0;

  /* void stop (); */
  NS_IMETHOD Stop(void) = 0;

  /* void playbackEnded (); */
  NS_IMETHOD PlaybackEnded(void) = 0;

  /* readonly attribute octet totalTracks; */
  NS_IMETHOD GetTotalTracks(uint8_t *aTotalTracks) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIStreamingProtocolController, NS_ISTREAMINGPROTOCOLCONTROLLER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISTREAMINGPROTOCOLCONTROLLER \
  NS_IMETHOD Init(nsIURI *aUri) override; \
  NS_IMETHOD AsyncOpen(nsIStreamingProtocolListener *aListener) override; \
  NS_IMETHOD GetTrackMetaData(uint8_t index, nsIStreamingProtocolMetaData * *_retval) override; \
  NS_IMETHOD Play(void) override; \
  NS_IMETHOD Pause(void) override; \
  NS_IMETHOD Resume(void) override; \
  NS_IMETHOD Suspend(void) override; \
  NS_IMETHOD Seek(uint64_t seekTimeUs) override; \
  NS_IMETHOD Stop(void) override; \
  NS_IMETHOD PlaybackEnded(void) override; \
  NS_IMETHOD GetTotalTracks(uint8_t *aTotalTracks) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSISTREAMINGPROTOCOLCONTROLLER \
  NS_METHOD Init(nsIURI *aUri); \
  NS_METHOD AsyncOpen(nsIStreamingProtocolListener *aListener); \
  NS_METHOD GetTrackMetaData(uint8_t index, nsIStreamingProtocolMetaData * *_retval); \
  NS_METHOD Play(void); \
  NS_METHOD Pause(void); \
  NS_METHOD Resume(void); \
  NS_METHOD Suspend(void); \
  NS_METHOD Seek(uint64_t seekTimeUs); \
  NS_METHOD Stop(void); \
  NS_METHOD PlaybackEnded(void); \
  NS_METHOD GetTotalTracks(uint8_t *aTotalTracks); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISTREAMINGPROTOCOLCONTROLLER(_to) \
  NS_IMETHOD Init(nsIURI *aUri) override { return _to Init(aUri); } \
  NS_IMETHOD AsyncOpen(nsIStreamingProtocolListener *aListener) override { return _to AsyncOpen(aListener); } \
  NS_IMETHOD GetTrackMetaData(uint8_t index, nsIStreamingProtocolMetaData * *_retval) override { return _to GetTrackMetaData(index, _retval); } \
  NS_IMETHOD Play(void) override { return _to Play(); } \
  NS_IMETHOD Pause(void) override { return _to Pause(); } \
  NS_IMETHOD Resume(void) override { return _to Resume(); } \
  NS_IMETHOD Suspend(void) override { return _to Suspend(); } \
  NS_IMETHOD Seek(uint64_t seekTimeUs) override { return _to Seek(seekTimeUs); } \
  NS_IMETHOD Stop(void) override { return _to Stop(); } \
  NS_IMETHOD PlaybackEnded(void) override { return _to PlaybackEnded(); } \
  NS_IMETHOD GetTotalTracks(uint8_t *aTotalTracks) override { return _to GetTotalTracks(aTotalTracks); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISTREAMINGPROTOCOLCONTROLLER(_to) \
  NS_IMETHOD Init(nsIURI *aUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aUri); } \
  NS_IMETHOD AsyncOpen(nsIStreamingProtocolListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncOpen(aListener); } \
  NS_IMETHOD GetTrackMetaData(uint8_t index, nsIStreamingProtocolMetaData * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTrackMetaData(index, _retval); } \
  NS_IMETHOD Play(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Play(); } \
  NS_IMETHOD Pause(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Pause(); } \
  NS_IMETHOD Resume(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Resume(); } \
  NS_IMETHOD Suspend(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Suspend(); } \
  NS_IMETHOD Seek(uint64_t seekTimeUs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Seek(seekTimeUs); } \
  NS_IMETHOD Stop(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Stop(); } \
  NS_IMETHOD PlaybackEnded(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PlaybackEnded(); } \
  NS_IMETHOD GetTotalTracks(uint8_t *aTotalTracks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTotalTracks(aTotalTracks); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsStreamingProtocolController : public nsIStreamingProtocolController
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISTREAMINGPROTOCOLCONTROLLER

  nsStreamingProtocolController();

private:
  ~nsStreamingProtocolController();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsStreamingProtocolController, nsIStreamingProtocolController)

nsStreamingProtocolController::nsStreamingProtocolController()
{
  /* member initializers and constructor code */
}

nsStreamingProtocolController::~nsStreamingProtocolController()
{
  /* destructor code */
}

/* void init (in nsIURI aUri); */
NS_IMETHODIMP nsStreamingProtocolController::Init(nsIURI *aUri)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void asyncOpen (in nsIStreamingProtocolListener aListener); */
NS_IMETHODIMP nsStreamingProtocolController::AsyncOpen(nsIStreamingProtocolListener *aListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIStreamingProtocolMetaData getTrackMetaData (in octet index); */
NS_IMETHODIMP nsStreamingProtocolController::GetTrackMetaData(uint8_t index, nsIStreamingProtocolMetaData * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void play (); */
NS_IMETHODIMP nsStreamingProtocolController::Play()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void pause (); */
NS_IMETHODIMP nsStreamingProtocolController::Pause()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void resume (); */
NS_IMETHODIMP nsStreamingProtocolController::Resume()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void suspend (); */
NS_IMETHODIMP nsStreamingProtocolController::Suspend()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void seek (in unsigned long long seekTimeUs); */
NS_IMETHODIMP nsStreamingProtocolController::Seek(uint64_t seekTimeUs)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void stop (); */
NS_IMETHODIMP nsStreamingProtocolController::Stop()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void playbackEnded (); */
NS_IMETHODIMP nsStreamingProtocolController::PlaybackEnded()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute octet totalTracks; */
NS_IMETHODIMP nsStreamingProtocolController::GetTotalTracks(uint8_t *aTotalTracks)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIStreamingProtocolController_h__ */