author Sam Foster <>
Tue, 22 Oct 2013 16:32:42 -0700
changeset 165581 e0598dfe8de11270a3064d84febb6959d6b1a278
parent 135855 d9aa9a732b06887a1e6c007db47bf3c4e4a98069
child 166021 c5a70830dc9a4643430c89274fb33d26ba235176
permissions -rw-r--r--
Bug 897113 - add noContext/contextmenu toggle for richgrid, disable selection for snapped view and awesomebar results. New selectNone richgrid method. r=rsilveira

/* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/* 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 mozilla_dom_bluetooth_BluetoothUnixSocketConnector_h
#define mozilla_dom_bluetooth_BluetoothUnixSocketConnector_h

#include "BluetoothCommon.h"
#include <sys/socket.h>
#include <mozilla/ipc/UnixSocket.h>


class BluetoothUnixSocketConnector : public mozilla::ipc::UnixSocketConnector
  BluetoothUnixSocketConnector(BluetoothSocketType aType, int aChannel,
                               bool aAuth, bool aEncrypt);
  virtual ~BluetoothUnixSocketConnector()
  virtual int Create() MOZ_OVERRIDE;
  virtual bool CreateAddr(bool aIsServer,
                          socklen_t& aAddrSize,
                          mozilla::ipc::sockaddr_any& aAddr,
                          const char* aAddress) MOZ_OVERRIDE;
  virtual bool SetUp(int aFd) MOZ_OVERRIDE;
  virtual void GetSocketAddr(const mozilla::ipc::sockaddr_any& aAddr,
                             nsAString& aAddrStr) MOZ_OVERRIDE;

  BluetoothSocketType mType;
  int mChannel;
  bool mAuth;
  bool mEncrypt;