Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Side by Side Diff: o3d/gpu_plugin/gpu_plugin_object_factory.cc

Issue 196032: Replaced BaseNPObject with DefaultNPObject because...... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « o3d/gpu_plugin/gpu_plugin_object.cc ('k') | o3d/gpu_plugin/gpu_plugin_object_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 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 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 "o3d/gpu_plugin/gpu_plugin_object.h" 5 #include "o3d/gpu_plugin/gpu_plugin_object.h"
6 #include "o3d/gpu_plugin/gpu_plugin_object_factory.h" 6 #include "o3d/gpu_plugin/gpu_plugin_object_factory.h"
7 #include "o3d/gpu_plugin/np_utils/np_utils.h"
7 8
8 namespace o3d { 9 namespace o3d {
9 namespace gpu_plugin { 10 namespace gpu_plugin {
10 11
11 GPUPluginObjectFactory::GPUPluginObjectFactory() { 12 GPUPluginObjectFactory::GPUPluginObjectFactory() {
12 } 13 }
13 14
14 GPUPluginObjectFactory::~GPUPluginObjectFactory() { 15 GPUPluginObjectFactory::~GPUPluginObjectFactory() {
15 } 16 }
16 17
17 PluginObject* GPUPluginObjectFactory::CreatePluginObject( 18 PluginObject* GPUPluginObjectFactory::CreatePluginObject(
18 NPP npp, 19 NPP npp,
19 NPMIMEType plugin_type) { 20 NPMIMEType plugin_type) {
20 if (strcmp(plugin_type, GPUPluginObject::kPluginType) == 0) { 21 if (strcmp(plugin_type, GPUPluginObject::kPluginType) == 0) {
21 return NPCreateObject<GPUPluginObject>(npp).ToReturned(); 22 return NPCreateObject<GPUPluginObject>(npp).ToReturned();
22 } 23 }
23 24
24 return NULL; 25 return NULL;
25 } 26 }
26 27
27 } // namespace gpu_plugin 28 } // namespace gpu_plugin
28 } // namespace o3d 29 } // namespace o3d
OLDNEW
« no previous file with comments | « o3d/gpu_plugin/gpu_plugin_object.cc ('k') | o3d/gpu_plugin/gpu_plugin_object_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698