| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ppapi/shared_impl/tracker_base.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 |
| 9 namespace ppapi { |
| 10 namespace shared_impl { |
| 11 |
| 12 static TrackerBase* (*g_global_getter)() = NULL; |
| 13 |
| 14 // static |
| 15 void TrackerBase::Init(TrackerBase* (*getter)()) { |
| 16 g_global_getter = getter; |
| 17 } |
| 18 |
| 19 // static |
| 20 TrackerBase* TrackerBase::Get() { |
| 21 return g_global_getter(); |
| 22 } |
| 23 |
| 24 } // namespace shared_impl |
| 25 } // namespace ppapi |
| OLD | NEW |