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

Unified Diff: webkit/plugins/ppapi/host_globals.h

Issue 9139054: Revert 117399 - Make it possible to have 1 PpapiGlobals per thread. Update unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/shared_impl/var_tracker.cc ('k') | webkit/plugins/ppapi/host_globals.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/host_globals.h
===================================================================
--- webkit/plugins/ppapi/host_globals.h (revision 117413)
+++ webkit/plugins/ppapi/host_globals.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -22,16 +22,12 @@
class HostGlobals : public ::ppapi::PpapiGlobals {
public:
HostGlobals();
- HostGlobals(::ppapi::PpapiGlobals::ForTest);
virtual ~HostGlobals();
// Getter for the global singleton. Generally, you should use
// PpapiGlobals::Get() when possible. Use this only when you need some
// host-specific functionality.
- inline static HostGlobals* Get() {
- DCHECK(PpapiGlobals::Get()->IsHostGlobals());
- return static_cast<HostGlobals*>(PpapiGlobals::Get());
- }
+ inline static HostGlobals* Get() { return host_globals_; }
// PpapiGlobals implementation.
virtual ::ppapi::ResourceTracker* GetResourceTracker() OVERRIDE;
@@ -42,7 +38,6 @@
PP_Instance inst,
::ppapi::ApiID id) OVERRIDE;
virtual PP_Module GetModuleForInstance(PP_Instance instance) OVERRIDE;
- virtual base::Lock* GetProxyLock() OVERRIDE;
HostVarTracker* host_var_tracker() {
return &host_var_tracker_;
@@ -80,9 +75,6 @@
WEBKIT_PLUGINS_EXPORT PluginInstance* GetInstance(PP_Instance instance);
private:
- // PpapiGlobals overrides.
- virtual bool IsHostGlobals() const OVERRIDE;
-
// Per-instance data we track.
struct InstanceData;
« no previous file with comments | « ppapi/shared_impl/var_tracker.cc ('k') | webkit/plugins/ppapi/host_globals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698