| 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 22 matching lines...) Expand all Loading... |
| 33 // process. | 33 // process. |
| 34 static void Init(TrackerBase*(*getter)()); | 34 static void Init(TrackerBase*(*getter)()); |
| 35 | 35 |
| 36 // Retrieves the global tracker. This will be NULL if you haven't called | 36 // Retrieves the global tracker. This will be NULL if you haven't called |
| 37 // Init() first (it should be unnecessary to NULL-check this). | 37 // Init() first (it should be unnecessary to NULL-check this). |
| 38 static TrackerBase* Get(); | 38 static TrackerBase* Get(); |
| 39 | 39 |
| 40 // Returns the function object corresponding to the given ID, or NULL if | 40 // Returns the function object corresponding to the given ID, or NULL if |
| 41 // there isn't one. | 41 // there isn't one. |
| 42 virtual FunctionGroupBase* GetFunctionAPI(PP_Instance inst, | 42 virtual FunctionGroupBase* GetFunctionAPI(PP_Instance inst, |
| 43 pp::proxy::InterfaceID id) = 0; | 43 proxy::InterfaceID id) = 0; |
| 44 | 44 |
| 45 virtual VarTracker* GetVarTracker() = 0; | 45 virtual VarTracker* GetVarTracker() = 0; |
| 46 virtual ResourceTracker* GetResourceTracker() = 0; | 46 virtual ResourceTracker* GetResourceTracker() = 0; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace ppapi | 49 } // namespace ppapi |
| 50 | 50 |
| 51 #endif // PPAPI_SHARED_IMPL_TRACKER_BASE_H_ | 51 #endif // PPAPI_SHARED_IMPL_TRACKER_BASE_H_ |
| OLD | NEW |