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

Issue 839773002: Plumbing from WebPresentationClient to the Presentation Mojo service for (Closed)

Created:
5 years, 11 months ago by whywhat
Modified:
5 years, 10 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, nasko+codewatch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, imcheng
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Plumbing from WebPresentationClient to the Presentation Mojo service for availablechange event. Blink CL: https://codereview.chromium.org/832263007 BUG=412331 Committed: https://crrev.com/bca35fadafda9c1d6494fb8f33cbd06500d063e5 Cr-Commit-Position: refs/heads/master@{#313772}

Patch Set 1 #

Total comments: 22

Patch Set 2 : Addressed Peter's comments #

Patch Set 3 : Fixed the build #

Total comments: 22

Patch Set 4 : #

Total comments: 6

Patch Set 5 : Got rid of the PresentationServiceClient #

Total comments: 4

Patch Set 6 : Swapped handling the event and requesting a new one #

Total comments: 26

Patch Set 7 : #

Patch Set 8 : Added OnChangeAvailabilityListenerRemoved #

Total comments: 12

Patch Set 9 : CHECK->DCHECK, corrected comments in mojom #

Patch Set 10 : Rebase #

Patch Set 11 : Fixed various trybot failures. #

Patch Set 12 : Updated comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -0 lines) Patch
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
A content/browser/presentation/OWNERS View 1 1 chunk +3 lines, -0 lines 0 comments Download
A content/browser/presentation/presentation_service_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +41 lines, -0 lines 0 comments Download
A content/browser/presentation/presentation_service_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +33 lines, -0 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
A content/common/presentation/OWNERS View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A content/common/presentation/presentation_service.mojom View 1 2 3 4 5 6 7 8 1 chunk +21 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_common_mojo_bindings.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
A content/renderer/presentation/OWNERS View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A content/renderer/presentation/presentation_dispatcher.h View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
A content/renderer/presentation/presentation_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +65 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 4 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (10 generated)
whywhat
Initial round of review(s), please.
5 years, 11 months ago (2015-01-07 12:39:02 UTC) #2
Peter Beverloo
https://codereview.chromium.org/839773002/diff/1/content/common/presentation_service.mojom File content/common/presentation_service.mojom (right): https://codereview.chromium.org/839773002/diff/1/content/common/presentation_service.mojom#newcode1 content/common/presentation_service.mojom:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
5 years, 11 months ago (2015-01-07 15:13:01 UTC) #3
whywhat
https://codereview.chromium.org/839773002/diff/1/content/common/presentation_service.mojom File content/common/presentation_service.mojom (right): https://codereview.chromium.org/839773002/diff/1/content/common/presentation_service.mojom#newcode1 content/common/presentation_service.mojom:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
5 years, 11 months ago (2015-01-07 18:03:00 UTC) #4
Peter Beverloo
Mostly lg, but please ask someone to take a look at the Mojo side of ...
5 years, 11 months ago (2015-01-07 19:41:21 UTC) #6
mlamouri (slow - plz ping)
lg but I think you will need to remove the Client= notation in your mojo ...
5 years, 11 months ago (2015-01-08 15:08:54 UTC) #7
whywhat
https://codereview.chromium.org/839773002/diff/40001/content/browser/presentation/presentation_service_impl.cc File content/browser/presentation/presentation_service_impl.cc (right): https://codereview.chromium.org/839773002/diff/40001/content/browser/presentation/presentation_service_impl.cc#newcode33 content/browser/presentation/presentation_service_impl.cc:33: } On 2015/01/08 15:08:53, Mounir Lamouri wrote: > Remove ...
5 years, 11 months ago (2015-01-08 17:28:53 UTC) #8
mlamouri (slow - plz ping)
lgtm For the Mojo interface, I'm not sure how you could prevent using the Client ...
5 years, 11 months ago (2015-01-15 11:40:13 UTC) #10
blundell
On 2015/01/15 11:40:13, Mounir Lamouri wrote: > lgtm > > For the Mojo interface, I'm ...
5 years, 11 months ago (2015-01-15 17:00:00 UTC) #11
blundell
Is there a reason why the model used by Geolocation doesn't work here? https://codereview.chromium.org/841133002/ Basically, ...
5 years, 11 months ago (2015-01-15 17:02:39 UTC) #12
blundell
On 2015/01/15 17:02:39, blundell wrote: > Is there a reason why the model used by ...
5 years, 11 months ago (2015-01-15 17:04:06 UTC) #13
mlamouri (slow - plz ping)
On 2015/01/15 at 17:02:39, blundell wrote: > Is there a reason why the model used ...
5 years, 11 months ago (2015-01-15 17:10:41 UTC) #14
qsr
On 2015/01/15 17:10:41, Mounir Lamouri wrote: > On 2015/01/15 at 17:02:39, blundell wrote: > > ...
5 years, 11 months ago (2015-01-15 17:13:27 UTC) #15
blundell
On 2015/01/15 17:10:41, Mounir Lamouri wrote: > On 2015/01/15 at 17:02:39, blundell wrote: > > ...
5 years, 11 months ago (2015-01-15 17:16:41 UTC) #16
blundell
On 2015/01/15 17:16:41, blundell wrote: > On 2015/01/15 17:10:41, Mounir Lamouri wrote: > > On ...
5 years, 11 months ago (2015-01-15 17:19:51 UTC) #17
whywhat
On 2015/01/15 17:19:51, blundell wrote: > On 2015/01/15 17:16:41, blundell wrote: > > On 2015/01/15 ...
5 years, 11 months ago (2015-01-25 23:05:15 UTC) #18
whywhat
https://codereview.chromium.org/839773002/diff/60001/content/browser/presentation/presentation_service_impl.cc File content/browser/presentation/presentation_service_impl.cc (right): https://codereview.chromium.org/839773002/diff/60001/content/browser/presentation/presentation_service_impl.cc#newcode24 content/browser/presentation/presentation_service_impl.cc:24: presentation::PresentationServiceClientPtr) { On 2015/01/15 11:40:13, Mounir Lamouri wrote: > ...
5 years, 11 months ago (2015-01-25 23:06:31 UTC) #19
blundell
Whose review are you looking for at this point?
5 years, 11 months ago (2015-01-26 08:11:35 UTC) #20
whywhat
On 2015/01/26 08:11:35, blundell wrote: > Whose review are you looking for at this point? ...
5 years, 11 months ago (2015-01-26 10:19:34 UTC) #21
mlamouri (slow - plz ping)
https://codereview.chromium.org/839773002/diff/80001/content/common/presentation/presentation_service.mojom File content/common/presentation/presentation_service.mojom (right): https://codereview.chromium.org/839773002/diff/80001/content/common/presentation/presentation_service.mojom#newcode14 content/common/presentation/presentation_service.mojom:14: GetScreenAvailability() => (bool available); If my understanding is correct, ...
5 years, 11 months ago (2015-01-26 10:26:40 UTC) #22
blundell
this flow is fine to me from the mojo pov, but i leave it up ...
5 years, 11 months ago (2015-01-26 10:31:09 UTC) #23
whywhat
https://codereview.chromium.org/839773002/diff/80001/content/common/presentation/presentation_service.mojom File content/common/presentation/presentation_service.mojom (right): https://codereview.chromium.org/839773002/diff/80001/content/common/presentation/presentation_service.mojom#newcode14 content/common/presentation/presentation_service.mojom:14: GetScreenAvailability() => (bool available); On 2015/01/26 10:26:39, Mounir Lamouri ...
5 years, 11 months ago (2015-01-26 11:06:09 UTC) #24
whywhat
Mark/Derek, could you take a look, esp. from the dropping the availability events on the ...
5 years, 11 months ago (2015-01-26 20:14:35 UTC) #26
imcheng
lgtm
5 years, 11 months ago (2015-01-27 07:46:39 UTC) #28
mark a. foltz
A few more comments around PresentationDispatcher https://codereview.chromium.org/839773002/diff/100001/content/browser/presentation/presentation_service_impl.h File content/browser/presentation/presentation_service_impl.h (right): https://codereview.chromium.org/839773002/diff/100001/content/browser/presentation/presentation_service_impl.h#newcode31 content/browser/presentation/presentation_service_impl.h:31: void GetScreenAvailability(const AvailabilityCallback& ...
5 years, 11 months ago (2015-01-27 21:56:10 UTC) #29
whywhat
Haven't uploaded the patch yet. https://codereview.chromium.org/839773002/diff/100001/content/browser/presentation/presentation_service_impl.h File content/browser/presentation/presentation_service_impl.h (right): https://codereview.chromium.org/839773002/diff/100001/content/browser/presentation/presentation_service_impl.h#newcode31 content/browser/presentation/presentation_service_impl.h:31: void GetScreenAvailability(const AvailabilityCallback& callback) ...
5 years, 11 months ago (2015-01-28 01:52:38 UTC) #30
qsr
https://codereview.chromium.org/839773002/diff/100001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): https://codereview.chromium.org/839773002/diff/100001/content/renderer/presentation/presentation_dispatcher.cc#newcode31 content/renderer/presentation/presentation_dispatcher.cc:31: presentation_service_->GetScreenAvailability( On 2015/01/28 01:52:38, whywhat wrote: > On 2015/01/27 ...
5 years, 10 months ago (2015-01-28 15:41:10 UTC) #32
whywhat
+Avi for ownership reviewal You're reviewing a relevant CL for imcheng@ already (crrev.com/883953002)
5 years, 10 months ago (2015-01-28 18:02:56 UTC) #34
Avi (use Gerrit)
Just nits. https://codereview.chromium.org/839773002/diff/140001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): https://codereview.chromium.org/839773002/diff/140001/content/renderer/presentation/presentation_dispatcher.cc#newcode29 content/renderer/presentation/presentation_dispatcher.cc:29: CHECK(controller != controller_ && (!controller || !controller_)); ...
5 years, 10 months ago (2015-01-28 19:04:05 UTC) #35
mark a. foltz
lgtm Copy editing suggestions on the mojom documentation. https://codereview.chromium.org/839773002/diff/140001/content/common/presentation/presentation_service.mojom File content/common/presentation/presentation_service.mojom (right): https://codereview.chromium.org/839773002/diff/140001/content/common/presentation/presentation_service.mojom#newcode8 content/common/presentation/presentation_service.mojom:8: // ...
5 years, 10 months ago (2015-01-28 19:37:02 UTC) #36
whywhat
https://codereview.chromium.org/839773002/diff/140001/content/common/presentation/presentation_service.mojom File content/common/presentation/presentation_service.mojom (right): https://codereview.chromium.org/839773002/diff/140001/content/common/presentation/presentation_service.mojom#newcode8 content/common/presentation/presentation_service.mojom:8: // Returns the last session state if it’s changed ...
5 years, 10 months ago (2015-01-28 20:26:04 UTC) #37
whywhat
PTAL I'd like to commit this once the Blink part rolls down to Chromium (tomorrow ...
5 years, 10 months ago (2015-01-28 21:33:53 UTC) #38
Avi (use Gerrit)
On 2015/01/28 21:33:53, whywhat wrote: > PTAL > > I'd like to commit this once ...
5 years, 10 months ago (2015-01-28 21:36:45 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/839773002/220001
5 years, 10 months ago (2015-01-29 16:37:58 UTC) #41
commit-bot: I haz the power
A disapproval has been posted by following reviewers: blundell@chromium.org. Please make sure to get positive ...
5 years, 10 months ago (2015-01-29 16:38:03 UTC) #43
blundell
lgtm
5 years, 10 months ago (2015-01-29 17:24:27 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/839773002/220001
5 years, 10 months ago (2015-01-29 17:37:15 UTC) #46
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 10 months ago (2015-01-29 20:21:37 UTC) #47
commit-bot: I haz the power
5 years, 10 months ago (2015-01-29 20:22:59 UTC) #48
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/bca35fadafda9c1d6494fb8f33cbd06500d063e5
Cr-Commit-Position: refs/heads/master@{#313772}

Powered by Google App Engine
This is Rietveld 408576698