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

Issue 147225: Refactoring to introduce refcount to WebMediaPlayerImpl... (Closed)

Created:
11 years, 6 months ago by Alpha Left Google
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Refactoring to introduce refcount to WebMediaPlayerImpl WebMediaPlayerImpl interacts with multiple threads that it becomes necessary to make it refcounted so we can post task on different threads' message loop. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=20038

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 26

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 18

Patch Set 7 : '' #

Total comments: 4

Patch Set 8 : '' #

Patch Set 9 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -231 lines) Patch
M webkit/api/public/WebMediaPlayer.h View 5 6 3 chunks +3 lines, -4 lines 0 comments Download
M webkit/api/src/WebMediaPlayerClientImpl.h View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
M webkit/api/src/WebMediaPlayerClientImpl.cpp View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
M webkit/glue/media/video_renderer_impl.h View 1 5 6 4 chunks +7 lines, -8 lines 0 comments Download
M webkit/glue/media/video_renderer_impl.cc View 1 5 6 3 chunks +8 lines, -6 lines 0 comments Download
M webkit/glue/webmediaplayer_impl.h View 1 2 3 4 5 6 7 6 chunks +108 lines, -69 lines 0 comments Download
M webkit/glue/webmediaplayer_impl.cc View 1 2 3 4 5 6 7 8 8 chunks +216 lines, -146 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Alpha Left Google
darin: webkit/api/* & webkit/glue/webmediaplayer_impl.{cc, h} scherkus: webkit/glue/webmediaplayer_impl.{cc, h} and webkit/glue/media/* This change is to add ...
11 years, 6 months ago (2009-06-26 20:48:14 UTC) #1
Alpha Left Google
+ajwong
11 years, 6 months ago (2009-06-26 23:26:02 UTC) #2
Alpha Left Google
+ajwong
11 years, 6 months ago (2009-06-26 23:26:15 UTC) #3
awong
Some comments regarding commenting. :) Also, one fairly serious change in API design for accessing ...
11 years, 6 months ago (2009-06-26 23:42:29 UTC) #4
Alpha Left Google
http://codereview.chromium.org/147225/diff/1011/21 File webkit/api/src/WebMediaPlayerClientImpl.cpp (right): http://codereview.chromium.org/147225/diff/1011/21#newcode113 Line 113: // Destroy the last WebMediaPlayer. On 2009/06/26 23:42:29, ...
11 years, 5 months ago (2009-06-29 18:07:48 UTC) #5
darin (slow to review)
http://codereview.chromium.org/147225/diff/3011/2008 File webkit/api/src/TemporaryGlue.h (right): http://codereview.chromium.org/147225/diff/3011/2008#newcode49 Line 49: static void destroyWebMediaPlayer(WebMediaPlayer*); this looks like an improper ...
11 years, 5 months ago (2009-06-29 19:51:54 UTC) #6
darin (slow to review)
WebMediaPlayer is supposed to be destroyed by having the WebKit API implementation layer call 'delete' ...
11 years, 5 months ago (2009-06-29 19:54:13 UTC) #7
darin (slow to review)
I think it is wrong for WebMediaPlayerImpl itself to be accessed on multiple threads.
11 years, 5 months ago (2009-06-29 19:54:35 UTC) #8
scherkus (not reviewing)
On 2009/06/29 19:54:35, darin wrote: > I think it is wrong for WebMediaPlayerImpl itself to ...
11 years, 5 months ago (2009-06-29 20:13:00 UTC) #9
darin (slow to review)
> If this is solved with another delegating layer, then so be it! It doesn't ...
11 years, 5 months ago (2009-06-29 21:14:54 UTC) #10
scherkus (not reviewing)
On 2009/06/29 21:14:54, darin wrote: > > If this is solved with another delegating layer, ...
11 years, 5 months ago (2009-06-29 21:31:13 UTC) #11
Alpha Left Google
Thanks for the recommendations. I'll modify it as such.
11 years, 5 months ago (2009-06-29 21:32:28 UTC) #12
Alpha Left Google
I modified the code so we only have a small ref-counted proxy class that delegates ...
11 years, 5 months ago (2009-07-01 01:47:33 UTC) #13
darin (slow to review)
nice! i just gave this a quick look... http://codereview.chromium.org/147225/diff/2023/3035 File webkit/glue/webmediaplayer_impl.h (right): http://codereview.chromium.org/147225/diff/2023/3035#newcode90 Line 90: ...
11 years, 5 months ago (2009-07-01 06:32:48 UTC) #14
Alpha Left Google
http://codereview.chromium.org/147225/diff/2023/3035 File webkit/glue/webmediaplayer_impl.h (right): http://codereview.chromium.org/147225/diff/2023/3035#newcode90 Line 90: class Proxy : public base::RefCountedThreadSafe<Proxy> { On 2009/07/01 ...
11 years, 5 months ago (2009-07-01 22:44:01 UTC) #15
darin (slow to review)
> It cannot be made private or defined in the .cc file, because it is ...
11 years, 5 months ago (2009-07-02 05:51:49 UTC) #16
scherkus (not reviewing)
http://codereview.chromium.org/147225/diff/2023/3034 File webkit/glue/webmediaplayer_impl.cc (right): http://codereview.chromium.org/147225/diff/2023/3034#newcode37 Line 37: WebKit::WebMediaPlayerClient* client, so this confuses me a bit... ...
11 years, 5 months ago (2009-07-02 22:01:18 UTC) #17
Alpha Left Google
done! http://codereview.chromium.org/147225/diff/2023/3034 File webkit/glue/webmediaplayer_impl.cc (right): http://codereview.chromium.org/147225/diff/2023/3034#newcode37 Line 37: WebKit::WebMediaPlayerClient* client, On 2009/07/02 22:01:18, scherkus wrote: ...
11 years, 5 months ago (2009-07-03 01:50:56 UTC) #18
scherkus (not reviewing)
tiny nits http://codereview.chromium.org/147225/diff/4002/4003 File webkit/glue/webmediaplayer_impl.cc (right): http://codereview.chromium.org/147225/diff/4002/4003#newcode87 Line 87: if (webmediaplayer_ && webmediaplayer_->GetClient()) nit: I ...
11 years, 5 months ago (2009-07-06 19:57:46 UTC) #19
Alpha Left Google
http://codereview.chromium.org/147225/diff/4002/4003 File webkit/glue/webmediaplayer_impl.cc (right): http://codereview.chromium.org/147225/diff/4002/4003#newcode87 Line 87: if (webmediaplayer_ && webmediaplayer_->GetClient()) On 2009/07/06 19:57:47, scherkus ...
11 years, 5 months ago (2009-07-06 20:14:56 UTC) #20
scherkus (not reviewing)
11 years, 5 months ago (2009-07-06 20:19:54 UTC) #21
the heck... rietveld is crapping out on me

lgtm!

Powered by Google App Engine
This is Rietveld 408576698