Bug 1496764 - Disable browser_UsageTelemetry_searchbar.js until telemetry probe has been extended to fix permafail on version increase. a=version-increase-fix

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- *//* 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 http://mozilla.org/MPL/2.0/. */// Original author: ekr@rtfm.com#ifndef transportlayer_h__#define transportlayer_h__#include"sigslot.h"#include"mozilla/DebugOnly.h"#include"mozilla/RefPtr.h"#include"nsCOMPtr.h"#include"nsIEventTarget.h"#include"m_cpp_utils.h"#include"mediapacket.h"namespacemozilla{classTransportFlow;typedefintTransportResult;enum{TE_WOULDBLOCK=-1,TE_ERROR=-2,TE_INTERNAL=-3};#define TRANSPORT_LAYER_ID(name) \ const std::string id() const override { return name; } \ static std::string ID() { return name; }// Abstract base class for network transport layers.classTransportLayer:publicsigslot::has_slots<>{public:// The state of the transport flow// We can't use "ERROR" because Windows has a macro named "ERROR"enumState{TS_NONE,TS_INIT,TS_CONNECTING,TS_OPEN,TS_CLOSED,TS_ERROR};// Is this a stream or datagram flowTransportLayer():state_(TS_NONE),flow_id_(),downward_(nullptr){}virtual~TransportLayer(){}// Called to initializensresultInit();// Called by Insert() to set up -- do not overridevirtualnsresultInitInternal(){returnNS_OK;}// Called by InitvoidSetFlowId(conststd::string&flow_id){flow_id_=flow_id;}virtualvoidChain(TransportLayer*downward);// Downward interfaceTransportLayer*downward(){returndownward_;}// Get the stateStatestate()const{returnstate_;}// Must be implemented by derived classesvirtualTransportResultSendPacket(MediaPacket&packet)=0;// Get the thread.constnsCOMPtr<nsIEventTarget>GetThread()const{returntarget_;}// Event definitions that one can register for// State has changedsigslot::signal2<TransportLayer*,State>SignalStateChange;// Data received on the flowsigslot::signal2<TransportLayer*,MediaPacket&>SignalPacketReceived;// Return the layer id for this layervirtualconststd::stringid()const=0;// The id of the flowconststd::string&flow_id()const{returnflow_id_;}protected:virtualvoidWasInserted(){}virtualvoidSetState(Statestate,constchar*file,unsignedline);// Check if we are on the right threadvoidCheckThread()const{MOZ_ASSERT(CheckThreadInt(),"Wrong thread");}Statestate_;std::stringflow_id_;TransportLayer*downward_;// The next layer in the stacknsCOMPtr<nsIEventTarget>target_;private:DISALLOW_COPY_ASSIGN(TransportLayer);boolCheckThreadInt()const{boolon;if(!target_)// OK if no thread set.returntrue;NS_ENSURE_SUCCESS(target_->IsOnCurrentThread(&on),false);NS_ENSURE_TRUE(on,false);returntrue;}};#define LAYER_INFO "Flow[" << flow_id() << "(none)" << "]; Layer[" << id() << "]: "#define TL_SET_STATE(x) SetState((x), __FILE__, __LINE__)}// close namespace#endif