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.h" | |
6 #include "gpu/gpu_plugin/gpu_plugin_object_factory.h" | |
7 #include "gpu/np_utils/np_utils.h" | |
8 | |
9 namespace gpu_plugin { | |
10 | |
11 GPUPluginObjectFactory::GPUPluginObjectFactory() { | |
12 } | |
13 | |
14 GPUPluginObjectFactory::~GPUPluginObjectFactory() { | |
15 } | |
16 | |
17 np_utils::PluginObject* GPUPluginObjectFactory::CreatePluginObject( | |
18 NPP npp, | |
19 NPMIMEType plugin_type) { | |
20 if (strcmp(plugin_type, GPUPluginObject::kPluginType) == 0) { | |
21 return np_utils::NPCreateObject<GPUPluginObject>(npp).ToReturned(); | |
22 } | |
23 | |
24 return NULL; | |
25 } | |
26 | |
27 } // namespace gpu_plugin | |
OLD | NEW |