xpcom/libxpcomrt/XPCOMRTStubs.cpp
author Andrea Marchesini <amarchesini@mozilla.com>
Thu, 04 Jun 2015 19:51:57 +0100
changeset 247941 fc4444e384ba699a67da8c1b1c286b7fdba3d919
parent 237447 0f5799df920bfbf966217fa7a8d511a646a53725
child 250218 8b4e4083639ef3563c9ebac4826cfbe8f21ef5ea
permissions -rw-r--r--
Bug 1155153 - about:serviceworkers should work in e10s mode, r=nsm, r=bholley

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* vim:set ts=4 sw=4 sts=4 ci et: */
/* 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/. */

#include "nsXULAppAPI.h"
#include "mozilla/TimeStamp.h"


GeckoProcessType
XRE_GetProcessType()
{
  return GeckoProcessType_Default;
}

#define PRINT_CALLED fprintf(stderr, "!!! ERROR: function %s defined in file %s should not be called, needs to be correctly implemented.\n", __FUNCTION__, __FILE__)

class nsAString;
class nsCString;

namespace base {
  class Histogram;
}

namespace mozilla {
namespace Telemetry {

#include "mozilla/TelemetryHistogramEnums.h"

void Accumulate(ID id, uint32_t sample) {}
void Accumulate(ID id, const nsCString& key, uint32_t sample) {}
void Accumulate(const char* name, uint32_t sample) {}
void AccumulateTimeDelta(ID id, TimeStamp start, TimeStamp end) {}

base::Histogram* GetHistogramById(ID id)
{
  return nullptr;
}

base::Histogram* GetKeyedHistogramById(ID id, const nsAString&)
{
  return nullptr;
}

} // Telemetry
} // mozilla