tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

PStunAddrsParams.h (921B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 #ifndef PStunAddrsParams_h
      6 #define PStunAddrsParams_h
      7 
      8 #include "mozilla/Maybe.h"
      9 #include "nsTArray.h"
     10 
     11 #ifdef MOZ_WEBRTC
     12 #  include "transport/nricestunaddr.h"
     13 #endif
     14 
     15 namespace mozilla {
     16 namespace net {
     17 
     18 // Need to define typedef in .h file--can't seem to in ipdl.h file?
     19 #ifdef MOZ_WEBRTC
     20 typedef nsTArray<NrIceStunAddr> NrIceStunAddrArray;
     21 #else
     22 // a "dummy" typedef for --disabled-webrtc builds when the definition
     23 // for NrIceStunAddr is not available (otherwise we get complaints
     24 // about missing definitions for contructor and destructor)
     25 typedef nsTArray<int> NrIceStunAddrArray;
     26 #endif
     27 
     28 typedef Maybe<nsCString> MaybeNsCString;
     29 
     30 }  // namespace net
     31 }  // namespace mozilla
     32 
     33 #endif  // PStunAddrsParams_h