| 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/test_globals.h" | 5 #include "ppapi/shared_impl/test_globals.h" |
| 6 | 6 |
| 7 namespace ppapi { | 7 namespace ppapi { |
| 8 | 8 |
| 9 TestGlobals::TestGlobals() | 9 TestGlobals::TestGlobals() |
| 10 : ppapi::PpapiGlobals(), | 10 : ppapi::PpapiGlobals(), |
| 11 callback_tracker_(new CallbackTracker) { | 11 callback_tracker_(new CallbackTracker) { |
| 12 } | 12 } |
| 13 | 13 |
| 14 TestGlobals::TestGlobals(PpapiGlobals::ForTest for_test) | 14 TestGlobals::TestGlobals(PpapiGlobals::ForPerThreadTest for_per_thread_test) |
| 15 : ppapi::PpapiGlobals(for_test), | 15 : ppapi::PpapiGlobals(for_per_thread_test), |
| 16 callback_tracker_(new CallbackTracker) { | 16 callback_tracker_(new CallbackTracker) { |
| 17 } | 17 } |
| 18 | 18 |
| 19 TestGlobals::~TestGlobals() { | 19 TestGlobals::~TestGlobals() { |
| 20 } | 20 } |
| 21 | 21 |
| 22 ResourceTracker* TestGlobals::GetResourceTracker() { | 22 ResourceTracker* TestGlobals::GetResourceTracker() { |
| 23 return &resource_tracker_; | 23 return &resource_tracker_; |
| 24 } | 24 } |
| 25 | 25 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 return NULL; | 73 return NULL; |
| 74 } | 74 } |
| 75 | 75 |
| 76 bool TestGlobals::IsHostGlobals() const { | 76 bool TestGlobals::IsHostGlobals() const { |
| 77 // Pretend to be the host-side, for code that expects one or the other. | 77 // Pretend to be the host-side, for code that expects one or the other. |
| 78 // TODO(dmichael): just make it settable which one we're pretending to be? | 78 // TODO(dmichael): just make it settable which one we're pretending to be? |
| 79 return true; | 79 return true; |
| 80 } | 80 } |
| 81 | 81 |
| 82 } // namespace ppapi | 82 } // namespace ppapi |
| OLD | NEW |