• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
8 namespace pp {
9 namespace {
10 static Module* g_module_singleton = NULL;
11 }  // namespace
12 
Get()13 Module* Module::Get() {
14   return g_module_singleton;
15 }
16 
InternalSetModuleSingleton(Module * module)17 void InternalSetModuleSingleton(Module* module) {
18   g_module_singleton = module;
19 }
20 
21 }  // namespace pp
22