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

Issue 733563002: Mojo Example that demos the difference between providing and requesting an interface (Closed)

Created:
6 years, 1 month ago by hansmuller
Modified:
6 years, 1 month ago
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Patch Set 1 : #

Total comments: 32

Patch Set 2 : Use the new Bind class #

Patch Set 3 : Manage IntegerServicePtr and DemoTask lifetimes. Fixed RunLoop::RemoveFirstInvalidHandle() #

Total comments: 13

Patch Set 4 : Changes per review feedback #

Patch Set 5 : Changes per review feedback #

Patch Set 6 : #

Patch Set 7 : Fixed Android build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+344 lines, -13 lines) Patch
M examples/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A examples/indirect_service/BUILD.gn View 1 1 chunk +63 lines, -0 lines 0 comments Download
A examples/indirect_service/README.md View 1 1 chunk +27 lines, -0 lines 0 comments Download
A examples/indirect_service/indirect_integer_service.cc View 1 2 3 4 5 6 1 chunk +69 lines, -0 lines 0 comments Download
A examples/indirect_service/indirect_service_demo.cc View 1 2 3 4 1 chunk +156 lines, -0 lines 0 comments Download
A + examples/indirect_service/indirect_service_demo.mojom View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
A + examples/indirect_service/integer_service.cc View 1 2 3 2 chunks +16 lines, -10 lines 0 comments Download
M mojo/public/cpp/utility/lib/run_loop.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M sky/services/testing/BUILD.gn View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
hansmuller
I wrote this example to help wrap my head around the difference between |interface&| and ...
6 years, 1 month ago (2014-11-20 01:37:44 UTC) #6
Aaron Boodman
fyi https://codereview.chromium.org/733563002/diff/80001/examples/indirect_service/README.md File examples/indirect_service/README.md (right): https://codereview.chromium.org/733563002/diff/80001/examples/indirect_service/README.md#newcode4 examples/indirect_service/README.md:4: This demo is intended to highlight the difference ...
6 years, 1 month ago (2014-11-20 07:21:59 UTC) #8
qsr
https://codereview.chromium.org/733563002/diff/80001/examples/indirect_service/indirect_service_demo.cc File examples/indirect_service/indirect_service_demo.cc (right): https://codereview.chromium.org/733563002/diff/80001/examples/indirect_service/indirect_service_demo.cc#newcode38 examples/indirect_service/indirect_service_demo.cc:38: thread_.Start(); You might want to put a MessagePumpMojo on ...
6 years, 1 month ago (2014-11-20 08:49:10 UTC) #10
hansmuller
Still looking at how I might leverage the new Bind class. https://codereview.chromium.org/733563002/diff/80001/examples/indirect_service/README.md File examples/indirect_service/README.md (right): ...
6 years, 1 month ago (2014-11-20 17:53:04 UTC) #11
yzshen1
https://codereview.chromium.org/733563002/diff/80001/examples/indirect_service/BUILD.gn File examples/indirect_service/BUILD.gn (right): https://codereview.chromium.org/733563002/diff/80001/examples/indirect_service/BUILD.gn#newcode30 examples/indirect_service/BUILD.gn:30: sources = [ "indirect_service_demo.cc" ] style nit: sources before ...
6 years, 1 month ago (2014-11-20 18:17:18 UTC) #12
hansmuller
Still looking at the lifetime issues. I think I've addressed the rest of the feedback. ...
6 years, 1 month ago (2014-11-20 19:27:59 UTC) #13
hansmuller
Explicitly manage the lifetime of DemoTask and its thread, as well as the IntegerServicePtr held ...
6 years, 1 month ago (2014-11-20 21:29:08 UTC) #15
yzshen1
Only a few nits. Thanks! https://codereview.chromium.org/733563002/diff/120001/examples/indirect_service/indirect_integer_service.cc File examples/indirect_service/indirect_integer_service.cc (right): https://codereview.chromium.org/733563002/diff/120001/examples/indirect_service/indirect_integer_service.cc#newcode36 examples/indirect_service/indirect_integer_service.cc:36: integer_service_->Increment(callback); You might want ...
6 years, 1 month ago (2014-11-20 22:01:45 UTC) #16
hansmuller
I've made the changes. https://codereview.chromium.org/733563002/diff/120001/examples/indirect_service/indirect_integer_service.cc File examples/indirect_service/indirect_integer_service.cc (right): https://codereview.chromium.org/733563002/diff/120001/examples/indirect_service/indirect_integer_service.cc#newcode36 examples/indirect_service/indirect_integer_service.cc:36: integer_service_->Increment(callback); On 2014/11/20 22:01:44, yzshen1 ...
6 years, 1 month ago (2014-11-20 22:35:38 UTC) #17
yzshen1
lgtm
6 years, 1 month ago (2014-11-20 23:07:14 UTC) #18
viettrungluu
lgtm
6 years, 1 month ago (2014-11-20 23:09:30 UTC) #19
hansmuller
Committed patchset #6 (id:180001) manually as 405bc1690e199f5d4bf5d75b998c595c87f914f8.
6 years, 1 month ago (2014-11-21 00:14:56 UTC) #20
hansmuller
6 years, 1 month ago (2014-11-21 17:55:01 UTC) #21
Message was sent while issue was closed.
Committed patchset #7 (id:200001) manually as
3f2b646ba07013352093dc05f128b98cb18f4e61.

Powered by Google App Engine
This is Rietveld 408576698