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

Issue 9097006: First pass at implementing the MessageLoop interface. This includes a simple (Closed)

Created:
8 years, 11 months ago by brettw
Modified:
8 years, 11 months ago
Reviewers:
bbudge
CC:
chromium-reviews
Visibility:
Public.

Description

First pass at implementing the MessageLoop interface. This includes a simple example and a helper class. The current example just asserts due to thread checks we have in there now, but this should provide a good starting point. BUG= TEST= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=119198

Patch Set 1 #

Total comments: 8

Patch Set 2 : Review comments #

Total comments: 2

Patch Set 3 : Review comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+582 lines, -0 lines) Patch
A ppapi/examples/threading/threading.cc View 1 1 chunk +74 lines, -0 lines 1 comment Download
M ppapi/ppapi_proxy.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 2 3 chunks +4 lines, -0 lines 0 comments Download
A ppapi/proxy/ppb_message_loop_proxy.h View 1 chunk +30 lines, -0 lines 0 comments Download
A ppapi/proxy/ppb_message_loop_proxy.cc View 1 2 1 chunk +286 lines, -0 lines 1 comment Download
M ppapi/shared_impl/resource.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A ppapi/thunk/ppb_message_loop_api.h View 1 chunk +25 lines, -0 lines 0 comments Download
A ppapi/utility/threading/simple_thread.h View 1 1 chunk +65 lines, -0 lines 0 comments Download
A ppapi/utility/threading/simple_thread.cc View 1 chunk +92 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
brettw
This depends on the API in: http://codereview.chromium.org/8965082/
8 years, 11 months ago (2012-01-06 23:48:11 UTC) #1
bbudge
http://codereview.chromium.org/9097006/diff/1/ppapi/examples/threading/threading.cc File ppapi/examples/threading/threading.cc (right): http://codereview.chromium.org/9097006/diff/1/ppapi/examples/threading/threading.cc#newcode1 ppapi/examples/threading/threading.cc:1: // Copyright (c) 2011 The Chromium Authors. All rights ...
8 years, 11 months ago (2012-01-10 19:40:20 UTC) #2
brettw
New snap up http://codereview.chromium.org/9097006/diff/1/ppapi/examples/threading/threading.cc File ppapi/examples/threading/threading.cc (right): http://codereview.chromium.org/9097006/diff/1/ppapi/examples/threading/threading.cc#newcode5 ppapi/examples/threading/threading.cc:5: #include "ppapi/c/dev/ppb_console_dev.h" Sorry, copy-n-pasted. http://codereview.chromium.org/9097006/diff/1/ppapi/utility/threading/simple_thread.h File ...
8 years, 11 months ago (2012-01-18 17:53:09 UTC) #3
bbudge
http://codereview.chromium.org/9097006/diff/6001/ppapi/proxy/ppb_message_loop_proxy.cc File ppapi/proxy/ppb_message_loop_proxy.cc (right): http://codereview.chromium.org/9097006/diff/6001/ppapi/proxy/ppb_message_loop_proxy.cc#newcode43 ppapi/proxy/ppb_message_loop_proxy.cc:43: int64_t delay_ms); OVERRIDE? http://codereview.chromium.org/9097006/diff/6001/ppapi/proxy/ppb_message_loop_proxy.cc#newcode151 ppapi/proxy/ppb_message_loop_proxy.cc:151: return PP_ERROR_BADARGUMENT; Need to ...
8 years, 11 months ago (2012-01-23 18:15:12 UTC) #4
brettw
PTAL
8 years, 11 months ago (2012-01-24 05:02:17 UTC) #5
bbudge
8 years, 11 months ago (2012-01-25 00:35:26 UTC) #6
A nit and question, otherwise LGTM.

http://codereview.chromium.org/9097006/diff/15001/ppapi/examples/threading/th...
File ppapi/examples/threading/threading.cc (right):

http://codereview.chromium.org/9097006/diff/15001/ppapi/examples/threading/th...
ppapi/examples/threading/threading.cc:17:
RequestInputEvents(PP_INPUTEVENT_CLASS_MOUSE);
Would it work if this was moved to Init()? It seems out of place here.

http://codereview.chromium.org/9097006/diff/15001/ppapi/proxy/ppb_message_loo...
File ppapi/proxy/ppb_message_loop_proxy.cc (right):

http://codereview.chromium.org/9097006/diff/15001/ppapi/proxy/ppb_message_loo...
ppapi/proxy/ppb_message_loop_proxy.cc:173: // Note that the message loop must be
destroyed on the thread is was created.
is -> it, created -> created on

Powered by Google App Engine
This is Rietveld 408576698