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

Issue 6359010: Add PepperViewProxy to protect PepperView and ChromotingInstance on shutdown (Closed)

Created:
9 years, 11 months ago by Alpha Left Google
Modified:
9 years, 6 months ago
Reviewers:
Sergey Ulanov, awong
CC:
chromium-reviews, dmac, awong, garykac, Paweł Hajdan Jr., Sergey Ulanov, Alpha Left Google
Visibility:
Public.

Description

Add PepperViewProxy to protect PepperView and ChromotingInstance on shutdown Adding a refcounted PepperViewProxy so that we can detach PepperView when ChromotingInstance is destroyed. PepperViewProxy also performs the task of thread delegation for PepperView so we can assume PepperView is used only on pepper thread. BUG=65696 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72568

Patch Set 1 #

Patch Set 2 : remove unrelated files #

Total comments: 12

Patch Set 3 : done #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -52 lines) Patch
M remoting/client/plugin/chromoting_instance.h View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M remoting/client/plugin/chromoting_instance.cc View 4 chunks +10 lines, -7 lines 0 comments Download
M remoting/client/plugin/pepper_view.h View 1 2 2 chunks +6 lines, -10 lines 0 comments Download
M remoting/client/plugin/pepper_view.cc View 1 2 10 chunks +20 lines, -34 lines 0 comments Download
A remoting/client/plugin/pepper_view_proxy.h View 1 2 1 chunk +78 lines, -0 lines 0 comments Download
A remoting/client/plugin/pepper_view_proxy.cc View 1 2 1 chunk +147 lines, -0 lines 0 comments Download
M remoting/protocol/jingle_connection_to_host.h View 1 2 1 chunk +1 line, -1 line 1 comment Download
M remoting/protocol/jingle_connection_to_host.cc View 1 2 1 chunk +1 line, -0 lines 1 comment Download
M remoting/remoting.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Alpha Left Google
9 years, 11 months ago (2011-01-21 23:21:32 UTC) #1
Alpha Left Google
+sergeyu
9 years, 11 months ago (2011-01-25 18:40:12 UTC) #2
Sergey Ulanov
Why can't we just make PepperView ref-counted?
9 years, 11 months ago (2011-01-25 20:38:44 UTC) #3
Sergey Ulanov
http://codereview.chromium.org/6359010/diff/2001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): http://codereview.chromium.org/6359010/diff/2001/remoting/client/plugin/chromoting_instance.cc#newcode125 remoting/client/plugin/chromoting_instance.cc:125: view_->SetViewport(position.x(), position.y(), view_proxy_? http://codereview.chromium.org/6359010/diff/2001/remoting/client/plugin/pepper_view.cc File remoting/client/plugin/pepper_view.cc (right): http://codereview.chromium.org/6359010/diff/2001/remoting/client/plugin/pepper_view.cc#newcode68 remoting/client/plugin/pepper_view.cc:68: ...
9 years, 11 months ago (2011-01-25 21:29:36 UTC) #4
Alpha Left Google
http://codereview.chromium.org/6359010/diff/2001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): http://codereview.chromium.org/6359010/diff/2001/remoting/client/plugin/chromoting_instance.cc#newcode125 remoting/client/plugin/chromoting_instance.cc:125: view_->SetViewport(position.x(), position.y(), On 2011/01/25 21:29:37, sergeyu wrote: > view_proxy_? ...
9 years, 11 months ago (2011-01-25 22:20:46 UTC) #5
Sergey Ulanov
9 years, 11 months ago (2011-01-25 22:26:53 UTC) #6
LGTM, after |control_reader_| is removed from JingleConnectionToHost.

http://codereview.chromium.org/6359010/diff/13001/remoting/protocol/jingle_co...
File remoting/protocol/jingle_connection_to_host.cc (right):

http://codereview.chromium.org/6359010/diff/13001/remoting/protocol/jingle_co...
remoting/protocol/jingle_connection_to_host.cc:25: control_reader_(new
MessageReader()),
Just remove control_reader_

http://codereview.chromium.org/6359010/diff/13001/remoting/protocol/jingle_co...
File remoting/protocol/jingle_connection_to_host.h (right):

http://codereview.chromium.org/6359010/diff/13001/remoting/protocol/jingle_co...
remoting/protocol/jingle_connection_to_host.h:94: scoped_refptr<MessageReader>
control_reader_;
This was replaced with dispatcher_, so we don't need control_reader_ anymore, it
can be removed. Thanks for fixing it.

Powered by Google App Engine
This is Rietveld 408576698