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

Issue 7730002: Call SendIq() from plugin asynchronously. (Closed)

Created:
9 years, 4 months ago by Sergey Ulanov
Modified:
9 years, 4 months ago
Reviewers:
Wez
CC:
chromium-reviews, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, simonmorris+watch_chromium.org, wez+watch_chromium.org, dmaclach+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, ajwong+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Call SendIq() from plugin asynchronously. BUG=93951 TEST=Client doesn't crash when disconnecting Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98139

Patch Set 1 #

Total comments: 4

Patch Set 2 : update comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -24 lines) Patch
M remoting/client/plugin/chromoting_scriptable_object.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M remoting/client/plugin/chromoting_scriptable_object.cc View 1 3 chunks +21 lines, -20 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Sergey Ulanov
9 years, 4 months ago (2011-08-24 19:22:27 UTC) #1
Wez
LGTM, but we're going to need to move away from synchronous scriptable interfaces in the ...
9 years, 4 months ago (2011-08-24 20:44:45 UTC) #2
Sergey Ulanov
> LGTM, but we're going to need to move away from > synchronous scriptable interfaces ...
9 years, 4 months ago (2011-08-24 22:42:22 UTC) #3
Wez
On 2011/08/24 22:42:22, sergeyu wrote: > > LGTM, but we're going to need to move ...
9 years, 4 months ago (2011-08-24 22:51:13 UTC) #4
Sergey Ulanov
On 2011/08/24 22:51:13, Wez wrote: > On 2011/08/24 22:42:22, sergeyu wrote: > > > LGTM, ...
9 years, 4 months ago (2011-08-24 23:07:00 UTC) #5
Wez
On 2011/08/24 23:07:00, sergeyu wrote: > On 2011/08/24 22:51:13, Wez wrote: > > On 2011/08/24 ...
9 years, 4 months ago (2011-08-25 01:11:23 UTC) #6
Sergey Ulanov
9 years, 4 months ago (2011-08-25 20:25:59 UTC) #7
On Wed, Aug 24, 2011 at 6:11 PM, <wez@chromium.org> wrote:

> On 2011/08/24 23:07:00, sergeyu wrote:
>
>> On 2011/08/24 22:51:13, Wez wrote:
>> > On 2011/08/24 22:42:22, sergeyu wrote:
>> > > > LGTM, but we're going to need to move away from
>> > > > synchronous scriptable interfaces in the client,
>> > > > aren't we, so perhaps now is a good time to start
>> > > > work on that?
>> > > Not sure I understand what you mean here. When plugin is destroyed we
>> need
>> to
>> > > shutdown synchronously, so even if connect() and disconnect() were
>> > asynchronous
>> > > it wouldn't help here anyway.
>> >
>> > I think the model is that connect() and disconnect() become messages
>> posted
>>
> to
>
>> > the plugin, rather than APIs, as would sendIq().
>>
>
>  I'm not convinced we really need to make connect(), disconnect() and other
>>
> APIs
>
>> asynchronous? What benefits would it provide?
>>
>
> Firstly, the synchronous APIs are deprecated, as far as I'm aware.
>  Secondly,
> it's better in that it avoids issues with mid-callback tear-down of
> components.


Oh, now I understand it. You meant that we need to switch to massaging-based
interface from the deprecated ScriptableObject, not just make the plugin
calls asynchronous. Looks like it's a prerequisite for switching to NaCl.


>
>
>
http://codereview.chromium.**org/7730002/<http://codereview.chromium.org/7730...
>

Powered by Google App Engine
This is Rietveld 408576698