dom/workers/Principal.cpp
author Masayuki Nakano <masayuki@d-toybox.com>
Wed, 02 Oct 2013 12:46:03 +0900
changeset 149614 2b65d2f636a67d2cbf0ca03cdb4290e1d207cad5
parent 138443 91b5985259ee7664577e75e9cd0452465d2c1c07
child 157783 c4883720cfb3191da8c79b2605abe6e4bda09bcb
permissions -rw-r--r--
Bug 920377 part.30 Get rid of nsGUIEvent r=roc

/* -*- 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