| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 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/proxy/plugin_globals.h" | |
| 6 | |
| 7 namespace ppapi { | |
| 8 namespace proxy { | |
| 9 | |
| 10 PluginGlobals* PluginGlobals::plugin_globals_ = NULL; | |
| 11 | |
| 12 PluginGlobals::PluginGlobals() : ppapi::PpapiGlobals() { | |
| 13 DCHECK(!plugin_globals_); | |
| 14 plugin_globals_ = this; | |
| 15 } | |
| 16 | |
| 17 PluginGlobals::~PluginGlobals() { | |
| 18 DCHECK(plugin_globals_ == this); | |
| 19 plugin_globals_ = NULL; | |
| 20 } | |
| 21 | |
| 22 ResourceTracker* PluginGlobals::GetResourceTracker() { | |
| 23 return &plugin_resource_tracker_; | |
| 24 } | |
| 25 | |
| 26 VarTracker* PluginGlobals::GetVarTracker() { | |
| 27 return &plugin_var_tracker_; | |
| 28 } | |
| 29 | |
| 30 } // namespace proxy | |
| 31 } // namespace ppapi | |
| OLD | NEW |