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

Issue 2800028: Simplfy Pepepr2 bolierplate code. (Closed)

Created:
10 years, 6 months ago by neb
Modified:
9 years, 7 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Add a GetAs<ResourceType> template. Move all the dependencies of new PP_Resource types into plugin_resource.h. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=51056

Patch Set 1 #

Patch Set 2 : Fix oopses. #

Patch Set 3 : Fix lint errors #

Total comments: 4

Patch Set 4 : Rename ResourceTracker::FromPPResource into Resource::GetAs. God bless Eclipse. #

Patch Set 5 : Updated with new Resource types #

Total comments: 8

Patch Set 6 : Updated. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -146 lines) Patch
M webkit/glue/plugins/pepper_buffer.cc View 1 2 3 4 5 3 chunks +4 lines, -8 lines 0 comments Download
M webkit/glue/plugins/pepper_device_context_2d.cc View 1 2 3 4 5 9 chunks +9 lines, -13 lines 0 comments Download
M webkit/glue/plugins/pepper_directory_reader.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M webkit/glue/plugins/pepper_file_chooser.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M webkit/glue/plugins/pepper_file_io.cc View 5 11 chunks +13 lines, -25 lines 0 comments Download
M webkit/glue/plugins/pepper_file_ref.cc View 5 4 chunks +5 lines, -9 lines 0 comments Download
M webkit/glue/plugins/pepper_image_data.cc View 1 2 3 4 5 4 chunks +4 lines, -8 lines 0 comments Download
M webkit/glue/plugins/pepper_plugin_instance.cc View 1 2 3 4 5 2 chunks +2 lines, -6 lines 0 comments Download
M webkit/glue/plugins/pepper_plugin_module.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M webkit/glue/plugins/pepper_resource.h View 1 2 3 4 5 3 chunks +34 lines, -2 lines 1 comment Download
M webkit/glue/plugins/pepper_resource_tracker.h View 1 2 3 4 3 chunks +1 line, -24 lines 0 comments Download
M webkit/glue/plugins/pepper_resource_tracker.cc View 1 2 3 4 1 chunk +0 lines, -20 lines 0 comments Download
M webkit/glue/plugins/pepper_url_loader.cc View 1 2 3 4 5 8 chunks +9 lines, -17 lines 0 comments Download
M webkit/glue/plugins/pepper_url_request_info.cc View 1 2 3 3 chunks +3 lines, -4 lines 0 comments Download
M webkit/glue/plugins/pepper_url_response_info.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
neb
The idea here is to make getting pointers from ids the same for PPInstance, PPModule ...
10 years, 6 months ago (2010-06-25 19:53:16 UTC) #1
darin (slow to review)
I like this patch a lot. Thanks! Just a suggestion about naming: http://codereview.chromium.org/2800028/diff/14001/5002 File webkit/glue/plugins/pepper_buffer.cc ...
10 years, 6 months ago (2010-06-25 20:42:36 UTC) #2
neb
http://codereview.chromium.org/2800028/diff/14001/5002 File webkit/glue/plugins/pepper_buffer.cc (right): http://codereview.chromium.org/2800028/diff/14001/5002#newcode42 webkit/glue/plugins/pepper_buffer.cc:42: ResourceTracker::FromPPResource<Buffer>(resource)); What do you think then about putting it ...
10 years, 6 months ago (2010-06-25 21:00:15 UTC) #3
darin (slow to review)
On Fri, Jun 25, 2010 at 2:00 PM, <neb@chromium.org> wrote: > > http://codereview.chromium.org/2800028/diff/14001/5002 > File ...
10 years, 6 months ago (2010-06-27 03:59:35 UTC) #4
neb
LGTY?
10 years, 6 months ago (2010-06-28 02:45:03 UTC) #5
darin (slow to review)
http://codereview.chromium.org/2800028/diff/34001/21002 File webkit/glue/plugins/pepper_buffer.cc (right): http://codereview.chromium.org/2800028/diff/34001/21002#newcode40 webkit/glue/plugins/pepper_buffer.cc:40: scoped_refptr<Buffer> buffer( some of these no longer require a ...
10 years, 5 months ago (2010-06-28 15:28:11 UTC) #6
neb
http://codereview.chromium.org/2800028/diff/34001/21002 File webkit/glue/plugins/pepper_buffer.cc (right): http://codereview.chromium.org/2800028/diff/34001/21002#newcode40 webkit/glue/plugins/pepper_buffer.cc:40: scoped_refptr<Buffer> buffer( On 2010/06/28 15:28:11, darin wrote: > some ...
10 years, 5 months ago (2010-06-28 17:42:44 UTC) #7
darin (slow to review)
10 years, 5 months ago (2010-06-28 19:57:07 UTC) #8
LGTM, thanks!

http://codereview.chromium.org/2800028/diff/19002/10013
File webkit/glue/plugins/pepper_resource.h (right):

http://codereview.chromium.org/2800028/diff/19002/10013#newcode86
webkit/glue/plugins/pepper_resource.h:86: }  // namespace pepper
nit: add a new line above the close of the namespace

Powered by Google App Engine
This is Rietveld 408576698