From 73097564b57bad21efbb72e49a0edf0d13e9c249 Mon Sep 17 00:00:00 2001 From: "dmichael@chromium.org" Date: Thu, 12 Jan 2012 19:38:55 +0000 Subject: Reland 9034035: Make it possible to have 1 PpapiGlobals per thread. Original CL: r117399, http://codereview.chromium.org/9034035/ Reverted in r117414, http://codereview.chromium.org/9139054/ due to a static initializer. This is the same as r117399 except using a LazyInstance to eliminate the static initializer. BUG= TEST= TBR=dmichael@chromium.org Review URL: http://codereview.chromium.org/9187055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117475 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/proxy/plugin_var_tracker.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'ppapi/proxy/plugin_var_tracker.h') diff --git a/ppapi/proxy/plugin_var_tracker.h b/ppapi/proxy/plugin_var_tracker.h index c2ede10..cafb3ab 100644 --- a/ppapi/proxy/plugin_var_tracker.h +++ b/ppapi/proxy/plugin_var_tracker.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -56,12 +56,6 @@ class PPAPI_PROXY_EXPORT PluginVarTracker : public VarTracker { void ReleaseHostObject(PluginDispatcher* dispatcher, const PP_Var& host_object); - // Retrieves the internal reference counts for testing. Returns 0 if we - // know about the object but the corresponding value is 0, or -1 if the - // given object ID isn't in our map. - int GetRefCountForObject(const PP_Var& plugin_object); - int GetTrackedWithNoReferenceCountForObject(const PP_Var& plugin_object); - private: // VarTracker protected overrides. virtual int32 AddVarInternal(Var* var, AddVarRefMode mode) OVERRIDE; -- cgit v1.1