1// Copyright (c) 2014 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include "ppapi/cpp/module.h" 6#include "ppapi/cpp/private/internal_module.h" 7 8namespace pp { 9namespace { 10static Module* g_module_singleton = NULL; 11} // namespace 12 13Module* Module::Get() { 14 return g_module_singleton; 15} 16 17void InternalSetModuleSingleton(Module* module) { 18 g_module_singleton = module; 19} 20 21} // namespace pp 22