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

Issue 291103004: Add conversion from Handle to UntypedHandle (Closed)

Created:
6 years, 7 months ago by qsr
Modified:
6 years, 7 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Visibility:
Public.

Description

Add conversion from Handle to UntypedHandle. UntypedHandle, as it is, makes chaining messages impossible. A received message is expected to contain UntypedHandle which cannot be generated from a Handle. This CL allows any handle to be transformed into an UntypedHandle. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272067

Patch Set 1 #

Patch Set 2 : Invalidate handle #

Total comments: 8

Patch Set 3 : Follow review #

Total comments: 5

Patch Set 4 : Follow review #

Patch Set 5 : Follow review #

Total comments: 4

Patch Set 6 : Fix protected. #

Total comments: 2

Patch Set 7 : HandleImpl -> HandleBase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -132 lines) Patch
M mojo/android/system/src/org/chromium/mojo/system/CoreImpl.java View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/android/system/src/org/chromium/mojo/system/DataPipeConsumerHandleImpl.java View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/android/system/src/org/chromium/mojo/system/DataPipeProducerHandleImpl.java View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
A + mojo/android/system/src/org/chromium/mojo/system/HandleBase.java View 1 2 3 4 5 6 3 chunks +15 lines, -6 lines 0 comments Download
M mojo/android/system/src/org/chromium/mojo/system/HandleImpl.java View 1 2 3 4 5 6 1 chunk +0 lines, -110 lines 0 comments Download
M mojo/android/system/src/org/chromium/mojo/system/MessagePipeHandleImpl.java View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/android/system/src/org/chromium/mojo/system/SharedBufferHandleImpl.java View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/android/system/src/org/chromium/mojo/system/UntypedHandleImpl.java View 1 2 3 4 5 6 1 chunk +9 lines, -2 lines 0 comments Download
M mojo/public/java/src/org/chromium/mojo/system/Handle.java View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M mojo/public/java/src/org/chromium/mojo/system/InvalidHandle.java View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
qsr
While trying to write bindings, I have plenty of issue if Handle cannot be considered ...
6 years, 7 months ago (2014-05-20 12:44:10 UTC) #1
rmcilroy
https://codereview.chromium.org/291103004/diff/20001/mojo/android/system/src/org/chromium/mojo/system/DataPipeConsumerHandleImpl.java File mojo/android/system/src/org/chromium/mojo/system/DataPipeConsumerHandleImpl.java (right): https://codereview.chromium.org/291103004/diff/20001/mojo/android/system/src/org/chromium/mojo/system/DataPipeConsumerHandleImpl.java#newcode26 mojo/android/system/src/org/chromium/mojo/system/DataPipeConsumerHandleImpl.java:26: * @see HandleImpl#HandleImpl(UntypedHandleImpl) Fix Javadoc (here and below). https://codereview.chromium.org/291103004/diff/20001/mojo/android/system/src/org/chromium/mojo/system/HandleImpl.java ...
6 years, 7 months ago (2014-05-20 16:34:58 UTC) #2
qsr
https://codereview.chromium.org/291103004/diff/20001/mojo/android/system/src/org/chromium/mojo/system/DataPipeConsumerHandleImpl.java File mojo/android/system/src/org/chromium/mojo/system/DataPipeConsumerHandleImpl.java (right): https://codereview.chromium.org/291103004/diff/20001/mojo/android/system/src/org/chromium/mojo/system/DataPipeConsumerHandleImpl.java#newcode26 mojo/android/system/src/org/chromium/mojo/system/DataPipeConsumerHandleImpl.java:26: * @see HandleImpl#HandleImpl(UntypedHandleImpl) On 2014/05/20 16:34:59, rmcilroy wrote: > ...
6 years, 7 months ago (2014-05-20 17:07:48 UTC) #3
rmcilroy
https://codereview.chromium.org/291103004/diff/20001/mojo/android/system/src/org/chromium/mojo/system/UntypedHandleImpl.java File mojo/android/system/src/org/chromium/mojo/system/UntypedHandleImpl.java (right): https://codereview.chromium.org/291103004/diff/20001/mojo/android/system/src/org/chromium/mojo/system/UntypedHandleImpl.java#newcode14 mojo/android/system/src/org/chromium/mojo/system/UntypedHandleImpl.java:14: class UntypedHandleImpl extends HandleImpl { > The issue is ...
6 years, 7 months ago (2014-05-20 20:22:09 UTC) #4
qsr
Following f2f discussion, changed this CL to add conversion from a Handle to an UntypedHandle. ...
6 years, 7 months ago (2014-05-21 09:45:30 UTC) #5
rmcilroy
This looks much better to me, thanks. lgtm after comments are addressed. https://codereview.chromium.org/291103004/diff/40001/mojo/android/system/src/org/chromium/mojo/system/HandleImpl.java File mojo/android/system/src/org/chromium/mojo/system/HandleImpl.java ...
6 years, 7 months ago (2014-05-21 11:31:43 UTC) #6
qsr
https://codereview.chromium.org/291103004/diff/80001/mojo/android/system/src/org/chromium/mojo/system/DataPipeConsumerHandleImpl.java File mojo/android/system/src/org/chromium/mojo/system/DataPipeConsumerHandleImpl.java (right): https://codereview.chromium.org/291103004/diff/80001/mojo/android/system/src/org/chromium/mojo/system/DataPipeConsumerHandleImpl.java#newcode25 mojo/android/system/src/org/chromium/mojo/system/DataPipeConsumerHandleImpl.java:25: * @see HandleImpl#HandleImpl(HandleImpl) On 2014/05/21 11:31:44, rmcilroy wrote: > ...
6 years, 7 months ago (2014-05-21 11:40:18 UTC) #7
qsr
viettrungluu@ -> gentle ping for OWNERS.
6 years, 7 months ago (2014-05-21 11:40:37 UTC) #8
bulach
lgtm, one suggestion below. thanks for the extensive discussion this morning! also, spurious . in ...
6 years, 7 months ago (2014-05-21 12:45:32 UTC) #9
qsr
https://codereview.chromium.org/291103004/diff/100001/mojo/android/system/src/org/chromium/mojo/system/HandleImpl.java File mojo/android/system/src/org/chromium/mojo/system/HandleImpl.java (right): https://codereview.chromium.org/291103004/diff/100001/mojo/android/system/src/org/chromium/mojo/system/HandleImpl.java#newcode14 mojo/android/system/src/org/chromium/mojo/system/HandleImpl.java:14: abstract class HandleImpl implements Handle { On 2014/05/21 12:45:33, ...
6 years, 7 months ago (2014-05-21 12:56:13 UTC) #10
viettrungluu
lgtm
6 years, 7 months ago (2014-05-21 17:13:25 UTC) #11
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 7 months ago (2014-05-21 19:48:35 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/291103004/120001
6 years, 7 months ago (2014-05-21 19:58:22 UTC) #13
commit-bot: I haz the power
6 years, 7 months ago (2014-05-22 03:12:28 UTC) #14
Message was sent while issue was closed.
Change committed as 272067

Powered by Google App Engine
This is Rietveld 408576698