| OLD | NEW |
| 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 Loading... |
| 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 |
| 47 // Returns the PP_Module associated with the given PP_Instance, or 0 on | 50 // Returns the PP_Module associated with the given PP_Instance, or 0 on |
| 48 // failure. | 51 // failure. |
| 49 virtual PP_Module GetModuleForInstance(PP_Instance instance) = 0; | 52 virtual PP_Module GetModuleForInstance(PP_Instance instance) = 0; |
| 50 }; | 53 }; |
| 51 | 54 |
| 52 } // namespace ppapi | 55 } // namespace ppapi |
| 53 | 56 |
| 54 #endif // PPAPI_SHARED_IMPL_TRACKER_BASE_H_ | 57 #endif // PPAPI_SHARED_IMPL_TRACKER_BASE_H_ |
| OLD | NEW |