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 #include "ppapi/shared_impl/ppapi_globals.h" | 5 #include "ppapi/shared_impl/ppapi_globals.h" |
6 | 6 |
7 #include "base/lazy_instance.h" // For testing purposes only. | 7 #include "base/lazy_instance.h" // For testing purposes only. |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
10 #include "base/threading/thread_local.h" // For testing purposes only. | 10 #include "base/threading/thread_local.h" // For testing purposes only. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 } | 59 } |
60 | 60 |
61 void PpapiGlobals::ResetMainThreadMessageLoopForTesting() { | 61 void PpapiGlobals::ResetMainThreadMessageLoopForTesting() { |
62 main_task_runner_ = base::ThreadTaskRunnerHandle::Get(); | 62 main_task_runner_ = base::ThreadTaskRunnerHandle::Get(); |
63 } | 63 } |
64 | 64 |
65 bool PpapiGlobals::IsHostGlobals() const { return false; } | 65 bool PpapiGlobals::IsHostGlobals() const { return false; } |
66 | 66 |
67 bool PpapiGlobals::IsPluginGlobals() const { return false; } | 67 bool PpapiGlobals::IsPluginGlobals() const { return false; } |
68 | 68 |
69 void PpapiGlobals::MarkPluginIsActive() {} | |
70 | |
71 // static | 69 // static |
72 PpapiGlobals* PpapiGlobals::GetThreadLocalPointer() { | 70 PpapiGlobals* PpapiGlobals::GetThreadLocalPointer() { |
73 return tls_ppapi_globals_for_test.Pointer()->Get(); | 71 return tls_ppapi_globals_for_test.Pointer()->Get(); |
74 } | 72 } |
75 | 73 |
76 } // namespace ppapi | 74 } // namespace ppapi |
OLD | NEW |