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/memory/shared_memory.h" | 9 #include "base/memory/shared_memory.h" |
10 #include "ppapi/shared_impl/callback_tracker.h" | 10 #include "ppapi/shared_impl/callback_tracker.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 virtual void PreCacheFontForFlash(const void* logfontw) OVERRIDE; | 66 virtual void PreCacheFontForFlash(const void* logfontw) OVERRIDE; |
67 virtual void LogWithSource(PP_Instance instance, | 67 virtual void LogWithSource(PP_Instance instance, |
68 PP_LogLevel level, | 68 PP_LogLevel level, |
69 const std::string& source, | 69 const std::string& source, |
70 const std::string& value) OVERRIDE; | 70 const std::string& value) OVERRIDE; |
71 virtual void BroadcastLogWithSource(PP_Module module, | 71 virtual void BroadcastLogWithSource(PP_Module module, |
72 PP_LogLevel level, | 72 PP_LogLevel level, |
73 const std::string& source, | 73 const std::string& source, |
74 const std::string& value) OVERRIDE; | 74 const std::string& value) OVERRIDE; |
75 virtual MessageLoopShared* GetCurrentMessageLoop() OVERRIDE; | 75 virtual MessageLoopShared* GetCurrentMessageLoop() OVERRIDE; |
76 virtual base::TaskRunner* GetFileTaskRunner(PP_Instance instance) OVERRIDE; | 76 virtual base::TaskRunner* GetFileTaskRunner() OVERRIDE; |
77 | 77 |
78 // PpapiGlobals overrides: | 78 // PpapiGlobals overrides: |
79 virtual bool IsHostGlobals() const OVERRIDE; | 79 virtual bool IsHostGlobals() const OVERRIDE; |
80 | 80 |
81 private: | 81 private: |
82 ResourceTracker resource_tracker_; | 82 ResourceTracker resource_tracker_; |
83 TestVarTracker var_tracker_; | 83 TestVarTracker var_tracker_; |
84 scoped_refptr<CallbackTracker> callback_tracker_; | 84 scoped_refptr<CallbackTracker> callback_tracker_; |
85 | 85 |
86 DISALLOW_COPY_AND_ASSIGN(TestGlobals); | 86 DISALLOW_COPY_AND_ASSIGN(TestGlobals); |
87 }; | 87 }; |
88 | 88 |
89 } // namespace ppapi | 89 } // namespace ppapi |
90 | 90 |
91 #endif // PPAPI_SHARED_IMPL_TEST_GLOBALS_H_ | 91 #endif // PPAPI_SHARED_IMPL_TEST_GLOBALS_H_ |
OLD | NEW |