OLD | NEW |
---|---|
(Empty) | |
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/internal_module.h" | |
6 #include "ppapi/cpp/module.h" | |
7 | |
8 namespace pp { | |
9 namespace { | |
10 static Module* g_module_singleton; | |
dmichael (off chromium)
2014/07/18 18:08:37
Would it be overkill to explicitly initialize to N
| |
11 } // namespace | |
12 | |
13 Module* Module::Get() { | |
14 return g_module_singleton; | |
15 } | |
16 | |
17 void InternalSetModuleSingleton(Module* module) { | |
18 g_module_singleton = module; | |
19 } | |
20 | |
21 } // namespace pp | |
dmichael (off chromium)
2014/07/18 18:08:37
It seems like you could put this in ppapi/cpp/priv
teravest
2014/07/28 18:40:08
Done.
| |
OLD | NEW |