| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TEST_GLOBALS_H_ | 5 #ifndef PPAPI_SHARED_IMPL_TEST_GLOBALS_H_ |
| 6 #define PPAPI_SHARED_IMPL_TEST_GLOBALS_H_ | 6 #define PPAPI_SHARED_IMPL_TEST_GLOBALS_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
| 10 #include "ppapi/shared_impl/callback_tracker.h" | 10 #include "ppapi/shared_impl/callback_tracker.h" |
| 11 #include "ppapi/shared_impl/ppapi_globals.h" | 11 #include "ppapi/shared_impl/ppapi_globals.h" |
| 12 #include "ppapi/shared_impl/resource_tracker.h" | 12 #include "ppapi/shared_impl/resource_tracker.h" |
| 13 #include "ppapi/shared_impl/var_tracker.h" | 13 #include "ppapi/shared_impl/var_tracker.h" |
| 14 | 14 |
| 15 namespace ppapi { | 15 namespace ppapi { |
| 16 | 16 |
| 17 class TestVarTracker : public VarTracker { | 17 class TestVarTracker : public VarTracker { |
| 18 public: | 18 public: |
| 19 TestVarTracker() : VarTracker(THREAD_SAFE) {} | 19 TestVarTracker() {} |
| 20 virtual ~TestVarTracker() {} | 20 virtual ~TestVarTracker() {} |
| 21 virtual ArrayBufferVar* CreateArrayBuffer(uint32 size_in_bytes) OVERRIDE { | 21 virtual ArrayBufferVar* CreateArrayBuffer(uint32 size_in_bytes) OVERRIDE { |
| 22 return NULL; | 22 return NULL; |
| 23 } | 23 } |
| 24 virtual ArrayBufferVar* CreateShmArrayBuffer( | 24 virtual ArrayBufferVar* CreateShmArrayBuffer( |
| 25 uint32 size_in_bytes, | 25 uint32 size_in_bytes, |
| 26 base::SharedMemoryHandle handle) OVERRIDE { | 26 base::SharedMemoryHandle handle) OVERRIDE { |
| 27 return NULL; | 27 return NULL; |
| 28 } | 28 } |
| 29 virtual void DidDeleteInstance(PP_Instance instance) OVERRIDE { | 29 virtual void DidDeleteInstance(PP_Instance instance) OVERRIDE { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 ResourceTracker resource_tracker_; | 79 ResourceTracker resource_tracker_; |
| 80 TestVarTracker var_tracker_; | 80 TestVarTracker var_tracker_; |
| 81 scoped_refptr<CallbackTracker> callback_tracker_; | 81 scoped_refptr<CallbackTracker> callback_tracker_; |
| 82 | 82 |
| 83 DISALLOW_COPY_AND_ASSIGN(TestGlobals); | 83 DISALLOW_COPY_AND_ASSIGN(TestGlobals); |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace ppapi | 86 } // namespace ppapi |
| 87 | 87 |
| 88 #endif // PPAPI_SHARED_IMPL_TEST_GLOBALS_H_ | 88 #endif // PPAPI_SHARED_IMPL_TEST_GLOBALS_H_ |
| OLD | NEW |