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

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

Issue 8344025: Add a new globals object for PPAPI tracking information. (Closed) Base URL: svn://chrome-svn/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/shared_impl/test_globals.cc ('k') | ppapi/shared_impl/url_util_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_SHARED_IMPL_TRACKER_BASE_H_ 5 #ifndef PPAPI_SHARED_IMPL_TRACKER_BASE_H_
6 #define PPAPI_SHARED_IMPL_TRACKER_BASE_H_ 6 #define PPAPI_SHARED_IMPL_TRACKER_BASE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "ppapi/c/pp_instance.h" 10 #include "ppapi/c/pp_instance.h"
(...skipping 26 matching lines...) Expand all
37 37
38 // Retrieves the global tracker. This will be NULL if you haven't called 38 // Retrieves the global tracker. This will be NULL if you haven't called
39 // Init() first (it should be unnecessary to NULL-check this). 39 // Init() first (it should be unnecessary to NULL-check this).
40 static TrackerBase* Get(); 40 static TrackerBase* Get();
41 41
42 // Returns the function object corresponding to the given ID, or NULL if 42 // Returns the function object corresponding to the given ID, or NULL if
43 // there isn't one. 43 // there isn't one.
44 virtual FunctionGroupBase* GetFunctionAPI(PP_Instance inst, 44 virtual FunctionGroupBase* GetFunctionAPI(PP_Instance inst,
45 proxy::InterfaceID id) = 0; 45 proxy::InterfaceID id) = 0;
46 46
47 virtual VarTracker* GetVarTracker() = 0;
48 virtual ResourceTracker* GetResourceTracker() = 0;
49
50 // Returns the PP_Module associated with the given PP_Instance, or 0 on 47 // Returns the PP_Module associated with the given PP_Instance, or 0 on
51 // failure. 48 // failure.
52 virtual PP_Module GetModuleForInstance(PP_Instance instance) = 0; 49 virtual PP_Module GetModuleForInstance(PP_Instance instance) = 0;
53 }; 50 };
54 51
55 } // namespace ppapi 52 } // namespace ppapi
56 53
57 #endif // PPAPI_SHARED_IMPL_TRACKER_BASE_H_ 54 #endif // PPAPI_SHARED_IMPL_TRACKER_BASE_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/test_globals.cc ('k') | ppapi/shared_impl/url_util_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698