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

Side by Side Diff: ppapi/shared_impl/ppapi_globals.h

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/ppp_video_decoder_proxy.cc ('k') | ppapi/shared_impl/ppapi_globals.cc » ('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 #ifndef PPAPI_SHARED_IMPL_PPAPI_GLOBALS_H_
6 #define PPAPI_SHARED_IMPL_PPAPI_GLOBALS_H_
7
8 #include "base/basictypes.h"
9
10 namespace ppapi {
11
12 class ResourceTracker;
13 class VarTracker;
14
15 // Abstract base class
16 class PpapiGlobals {
17 public:
18 PpapiGlobals();
19 virtual ~PpapiGlobals();
20
21 // Getter for the global singleton.
22 inline static PpapiGlobals* Get() { return ppapi_globals_; }
23
24 virtual ResourceTracker* GetResourceTracker() = 0;
25 virtual VarTracker* GetVarTracker() = 0;
26
27 private:
28 static PpapiGlobals* ppapi_globals_;
29
30 DISALLOW_COPY_AND_ASSIGN(PpapiGlobals);
31 };
32
33 } // namespace ppapi
34
35 #endif // PPAPI_SHARED_IMPL_PPAPI_GLOBALS_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppp_video_decoder_proxy.cc ('k') | ppapi/shared_impl/ppapi_globals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698