Chromium Code Reviews| Index: ppapi/shared_impl/tracker_base.cc |
| =================================================================== |
| --- ppapi/shared_impl/tracker_base.cc (revision 0) |
| +++ ppapi/shared_impl/tracker_base.cc (revision 0) |
| @@ -0,0 +1,25 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "ppapi/shared_impl/tracker_base.h" |
| + |
| +#include "base/logging.h" |
| + |
| +namespace ppapi { |
| +namespace shared_impl { |
| + |
| +static TrackerBase* (*global_getter)() = NULL; |
|
piman
2011/05/06 17:00:09
g_global_getter
|
| + |
| +// static |
| +void TrackerBase::Init(TrackerBase* (*getter)()) { |
| + global_getter = getter; |
| +} |
| + |
| +// static |
| +TrackerBase* TrackerBase::Get() { |
| + return global_getter(); |
| +} |
| + |
| +} // namespace shared_impl |
| +} // namespace ppapi |
| Property changes on: ppapi/shared_impl/tracker_base.cc |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| + LF |