dom/workers/Principal.cpp
author Rafael Ávila de Espíndola <respindola@mozilla.org>
Fri, 07 Dec 2012 01:06:33 -0500
changeset 120858 8df4ccd2fc0d48cb48a0c4878c89de412f916cec
parent 96742 f4157e8c410708d76703f19e4dfb61859bfe32d8
child 146016 757e87bb1c1e91b425d9100a53fa539072995b7b
permissions -rw-r--r--
Bug 818565 - Replace test-ping with a function. r=vladan.

/* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
/* 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 "Principal.h"

#include "jsapi.h"

BEGIN_WORKERS_NAMESPACE

namespace {

JSPrincipals gPrincipal = {
  1
#ifdef DEBUG
  , kJSPrincipalsDebugToken
#endif
};

} // anonymous namespace

JSPrincipals*
GetWorkerPrincipal()
{
  return &gPrincipal;
}

END_WORKERS_NAMESPACE