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

Issue 196032: Replaced BaseNPObject with DefaultNPObject because...... (Closed)

Created:
11 years, 3 months ago by apatrick
Modified:
9 years, 7 months ago
Reviewers:
gman1
CC:
chromium-reviews_googlegroups.com, Paweł Hajdan Jr.
Visibility:
Public.

Description

Replaced BaseNPObject with DefaultNPObject because... DefaultNPObject can derive from bases other than NPObject, allowing concrete NPObjects to choose their own NPObject subclass. DefaultNPObject does not rely on virtual functions. See change to NPGetClass in np_class.h. Removed count() from MockNPObject because I discovered gmock checks that no mock objects exist after a test completes anyway. TEST=none BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=25632

Patch Set 1 #

Total comments: 3

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+494 lines, -807 lines) Patch
M o3d/gpu_plugin/command_buffer.h View 1 3 chunks +5 lines, -4 lines 0 comments Download
M o3d/gpu_plugin/command_buffer.cc View 2 chunks +7 lines, -7 lines 0 comments Download
M o3d/gpu_plugin/command_buffer_unittest.cc View 1 5 chunks +9 lines, -10 lines 0 comments Download
M o3d/gpu_plugin/gpu_plugin.gyp View 1 2 chunks +7 lines, -9 lines 0 comments Download
M o3d/gpu_plugin/gpu_plugin_object.h View 1 3 chunks +4 lines, -3 lines 0 comments Download
M o3d/gpu_plugin/gpu_plugin_object.cc View 4 chunks +4 lines, -3 lines 0 comments Download
M o3d/gpu_plugin/gpu_plugin_object_factory.cc View 1 chunk +1 line, -0 lines 0 comments Download
M o3d/gpu_plugin/gpu_plugin_object_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M o3d/gpu_plugin/gpu_plugin_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
D o3d/gpu_plugin/np_utils/base_np_object.h View 1 chunk +0 lines, -135 lines 0 comments Download
D o3d/gpu_plugin/np_utils/base_np_object.cc View 1 chunk +0 lines, -136 lines 0 comments Download
D o3d/gpu_plugin/np_utils/base_np_object_mock.h View 1 chunk +0 lines, -47 lines 0 comments Download
D o3d/gpu_plugin/np_utils/base_np_object_mock.cc View 1 chunk +0 lines, -13 lines 0 comments Download
D o3d/gpu_plugin/np_utils/base_np_object_unittest.cc View 1 chunk +0 lines, -156 lines 0 comments Download
A o3d/gpu_plugin/np_utils/default_np_object.h View 1 1 chunk +86 lines, -0 lines 0 comments Download
M o3d/gpu_plugin/np_utils/dispatched_np_object_unittest.cc View 1 9 chunks +13 lines, -15 lines 0 comments Download
M o3d/gpu_plugin/np_utils/dynamic_np_object.h View 1 2 chunks +8 lines, -8 lines 0 comments Download
M o3d/gpu_plugin/np_utils/dynamic_np_object.cc View 1 chunk +1 line, -1 line 0 comments Download
A + o3d/gpu_plugin/np_utils/np_class.h View 1 chunk +87 lines, -94 lines 0 comments Download
A + o3d/gpu_plugin/np_utils/np_class_unittest.cc View 12 chunks +26 lines, -37 lines 0 comments Download
M o3d/gpu_plugin/np_utils/np_dispatcher.h View 1 3 chunks +62 lines, -21 lines 0 comments Download
A o3d/gpu_plugin/np_utils/np_dispatcher.cc View 1 chunk +87 lines, -0 lines 0 comments Download
M o3d/gpu_plugin/np_utils/np_dispatcher_specializations.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
A + o3d/gpu_plugin/np_utils/np_object_mock.h View 2 chunks +8 lines, -16 lines 0 comments Download
M o3d/gpu_plugin/np_utils/np_object_pointer_unittest.cc View 13 chunks +33 lines, -38 lines 0 comments Download
M o3d/gpu_plugin/np_utils/np_utils.h View 4 chunks +4 lines, -3 lines 0 comments Download
M o3d/gpu_plugin/np_utils/np_utils_unittest.cc View 20 chunks +34 lines, -44 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
apatrick
It's not as bad as it looks. Just a refactor.
11 years, 3 months ago (2009-09-04 22:43:22 UTC) #1
gman
LGTM I don't personally have a problem with the multiple inheritance...Just wondering if there is ...
11 years, 3 months ago (2009-09-04 23:48:52 UTC) #2
apatrick
Do you prefer this? It also gets rid of the virtual call to GetDynamicDispatcherChain. http://codereview.chromium.org/196032/diff/1/18 ...
11 years, 3 months ago (2009-09-05 00:44:05 UTC) #3
gman
11 years, 3 months ago (2009-09-05 01:01:07 UTC) #4
hmmm, that seems more in the spirit of the style guide although it's still a
little funky in that you are counting of the hiding of base class functions
instead of being explicit. Then again, not being explicit means it's more
expandable I guess so yea. Looks good.

Powered by Google App Engine
This is Rietveld 408576698