Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Side by Side Diff: ppapi/proxy/plugin_globals.cc

Issue 8342016: Revert 106142 - Add a new globals object for PPAPI tracking information. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/plugin_globals.h ('k') | ppapi/proxy/plugin_resource_tracker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_globals.h ('k') | ppapi/proxy/plugin_resource_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698