author Jean-Yves Avenard <>
Mon, 12 Nov 2018 01:09:03 +0000
changeset 505066 6f08cc82afe3280863c897dda1e141d8c4c165d7
parent 399495 af9901df3d48f0c683551331507c3c0810e9fc8f
child 508163 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
Bug 1505910 - P2. Remove use of AsTaskQueue(). r=cpearce Make IsCurrentThreadIn() const. Depends on D11491 Differential Revision:

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at */

#ifndef nricestunaddr_h__
#define nricestunaddr_h__

#include "nsError.h" // for nsresult

typedef struct nr_local_addr_ nr_local_addr;

namespace mozilla {

class NrIceStunAddr {
  NrIceStunAddr(); // needed for IPC deserialization
  explicit NrIceStunAddr(const nr_local_addr* addr);
  NrIceStunAddr(const NrIceStunAddr& rhs);


  const nr_local_addr& localAddr() const { return *localAddr_; }

  // serialization/deserialization helper functions for use
  // in media/mtransport/ipc/NrIceStunAddrMessagUtils.h
  size_t SerializationBufferSize() const;
  nsresult Serialize(char* buffer, size_t buffer_size) const;
  nsresult Deserialize(const char* buffer, size_t buffer_size);

  nr_local_addr* localAddr_;


} // namespace mozilla

#endif // nricestunaddr_h__