| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2006-2008 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 "gpu/gpu_plugin/gpu_plugin_object_factory.h" | |
| 6 #include "base/logging.h" | |
| 7 | |
| 8 namespace np_utils { | |
| 9 | |
| 10 NPPluginObjectFactory* NPPluginObjectFactory::factory_; | |
| 11 | |
| 12 PluginObject* NPPluginObjectFactory::CreatePluginObject( | |
| 13 NPP npp, | |
| 14 NPMIMEType plugin_type) { | |
| 15 return NULL; | |
| 16 } | |
| 17 | |
| 18 NPPluginObjectFactory::NPPluginObjectFactory() { | |
| 19 // Make this the first factory in the linked list. | |
| 20 previous_factory_ = factory_; | |
| 21 factory_ = this; | |
| 22 } | |
| 23 | |
| 24 NPPluginObjectFactory::~NPPluginObjectFactory() { | |
| 25 // Remove this factory from the linked list. | |
| 26 DCHECK(factory_ == this); | |
| 27 factory_ = previous_factory_; | |
| 28 } | |
| 29 | |
| 30 } // namespace np_utils | |
| OLD | NEW |