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

Issue 935083002: [PresentationAPI] Implementing start/joinSession from WebPresentationClient to PresentationService. (Closed)

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

Description

[PresentationAPI] Implementing start/joinSession from WebPresentationClient to PresentationService. Added PresentationSession Mojo interface with its client implementation, PresentationSessionDispatcher. Depends on the Blink change: https://codereview.chromium.org/935103002 BUG=459005 Committed: https://crrev.com/f0dd974b186bbaf4d1e6c5805666f7c0d71ae795 Cr-Commit-Position: refs/heads/master@{#318550}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Changed the Mojo interface according to the comments #

Patch Set 3 : No find copoes #

Total comments: 8

Patch Set 4 : is_null() checks for StructPtr's instead of get() #

Total comments: 24

Patch Set 5 : Addressed comments #

Patch Set 6 : Updated according to the Blink change #

Total comments: 4

Patch Set 7 : Updated Mojo interface comments according to feedback #

Patch Set 8 : Introduced a proxy for PresentationSessionDispatcher to pass info to the callback in a consistent w… #

Patch Set 9 : Full change #

Total comments: 10

Patch Set 10 : Storing the id and url in the PresentationSessionClient, etc #

Total comments: 13

Patch Set 11 : Fixed the last round of comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+310 lines, -1 line) Patch
M content/browser/presentation/presentation_service_impl.h View 1 2 3 4 8 3 chunks +13 lines, -1 line 0 comments Download
M content/browser/presentation/presentation_service_impl.cc View 8 1 chunk +14 lines, -0 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/common/presentation/presentation_service.mojom View 1 2 3 4 5 6 8 2 chunks +40 lines, -0 lines 0 comments Download
A content/common/presentation/presentation_session.mojom View 1 2 8 1 chunk +8 lines, -0 lines 0 comments Download
M content/content_common_mojo_bindings.gyp View 8 1 chunk +1 line, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/presentation/presentation_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +26 lines, -0 lines 0 comments Download
M content/renderer/presentation/presentation_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +79 lines, -0 lines 0 comments Download
A content/renderer/presentation/presentation_session_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +35 lines, -0 lines 0 comments Download
A content/renderer/presentation/presentation_session_client.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +30 lines, -0 lines 0 comments Download
A content/renderer/presentation/presentation_session_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +30 lines, -0 lines 0 comments Download
A content/renderer/presentation/presentation_session_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (7 generated)
whywhat
Please, take a first look for a sanity check.
5 years, 10 months ago (2015-02-18 14:43:22 UTC) #2
mlamouri (slow - plz ping)
First pass looking at the mojo interface. Let's figure out what to do there then ...
5 years, 10 months ago (2015-02-18 15:16:43 UTC) #3
blundell
https://codereview.chromium.org/935083002/diff/1/content/renderer/presentation/presentation_dispatcher.h File content/renderer/presentation/presentation_dispatcher.h (right): https://codereview.chromium.org/935083002/diff/1/content/renderer/presentation/presentation_dispatcher.h#newcode47 content/renderer/presentation/presentation_dispatcher.h:47: mojo::InterfaceRequest<presentation::PresentationSession> session_request, Why is this called session_request? The idea ...
5 years, 10 months ago (2015-02-18 15:35:16 UTC) #5
whywhat
PTAL https://codereview.chromium.org/935083002/diff/1/content/common/presentation/presentation_service.mojom File content/common/presentation/presentation_service.mojom (right): https://codereview.chromium.org/935083002/diff/1/content/common/presentation/presentation_service.mojom#newcode34 content/common/presentation/presentation_service.mojom:34: bool success, On 2015/02/18 15:16:43, Mounir Lamouri wrote: ...
5 years, 10 months ago (2015-02-19 16:32:22 UTC) #7
mark a. foltz
https://codereview.chromium.org/935083002/diff/40001/content/common/presentation/presentation_service.mojom File content/common/presentation/presentation_service.mojom (right): https://codereview.chromium.org/935083002/diff/40001/content/common/presentation/presentation_service.mojom#newcode10 content/common/presentation/presentation_service.mojom:10: PresentationSession session; Are |url| and |id| properties of |session|? ...
5 years, 10 months ago (2015-02-19 22:59:57 UTC) #8
whywhat
https://codereview.chromium.org/935083002/diff/40001/content/common/presentation/presentation_service.mojom File content/common/presentation/presentation_service.mojom (right): https://codereview.chromium.org/935083002/diff/40001/content/common/presentation/presentation_service.mojom#newcode10 content/common/presentation/presentation_service.mojom:10: PresentationSession session; On 2015/02/19 22:59:57, mark a. foltz wrote: ...
5 years, 10 months ago (2015-02-19 23:22:18 UTC) #9
blundell
LGTM from the Mojo pov
5 years, 10 months ago (2015-02-20 07:16:27 UTC) #10
mlamouri (slow - plz ping)
https://codereview.chromium.org/935083002/diff/60001/content/browser/presentation/presentation_service_impl.h File content/browser/presentation/presentation_service_impl.h (right): https://codereview.chromium.org/935083002/diff/60001/content/browser/presentation/presentation_service_impl.h#newcode54 content/browser/presentation/presentation_service_impl.h:54: typedef mojo::Callback<void(presentation::PresentationSessionInfoPtr, What about using `using Foo = Bar;` ...
5 years, 10 months ago (2015-02-23 14:07:39 UTC) #12
whywhat
https://codereview.chromium.org/935083002/diff/60001/content/browser/presentation/presentation_service_impl.h File content/browser/presentation/presentation_service_impl.h (right): https://codereview.chromium.org/935083002/diff/60001/content/browser/presentation/presentation_service_impl.h#newcode54 content/browser/presentation/presentation_service_impl.h:54: typedef mojo::Callback<void(presentation::PresentationSessionInfoPtr, On 2015/02/23 14:07:39, Mounir Lamouri wrote: > ...
5 years, 10 months ago (2015-02-25 14:12:42 UTC) #13
mark a. foltz
lgtm with a couple of suggestions for docstrings https://codereview.chromium.org/935083002/diff/100001/content/common/presentation/presentation_service.mojom File content/common/presentation/presentation_service.mojom (right): https://codereview.chromium.org/935083002/diff/100001/content/common/presentation/presentation_service.mojom#newcode44 content/common/presentation/presentation_service.mojom:44: // ...
5 years, 10 months ago (2015-02-26 00:13:42 UTC) #14
whywhat
https://codereview.chromium.org/935083002/diff/100001/content/common/presentation/presentation_service.mojom File content/common/presentation/presentation_service.mojom (right): https://codereview.chromium.org/935083002/diff/100001/content/common/presentation/presentation_service.mojom#newcode44 content/common/presentation/presentation_service.mojom:44: // succeeded (so the session object is valid) or ...
5 years, 10 months ago (2015-02-26 16:15:07 UTC) #15
mlamouri (slow - plz ping)
https://codereview.chromium.org/935083002/diff/160001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): https://codereview.chromium.org/935083002/diff/160001/content/renderer/presentation/presentation_dispatcher.cc#newcode87 content/renderer/presentation/presentation_dispatcher.cc:87: presentation_service_->JoinSession( You don't have to apply that change but ...
5 years, 10 months ago (2015-02-26 22:24:26 UTC) #16
whywhat
PTAL https://codereview.chromium.org/935083002/diff/160001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): https://codereview.chromium.org/935083002/diff/160001/content/renderer/presentation/presentation_dispatcher.cc#newcode87 content/renderer/presentation/presentation_dispatcher.cc:87: presentation_service_->JoinSession( On 2015/02/26 22:24:26, Mounir Lamouri wrote: > ...
5 years, 9 months ago (2015-02-27 14:44:46 UTC) #17
mlamouri (slow - plz ping)
lgtm with comments applied https://codereview.chromium.org/935083002/diff/180001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): https://codereview.chromium.org/935083002/diff/180001/content/renderer/presentation/presentation_dispatcher.cc#newcode74 content/renderer/presentation/presentation_dispatcher.cc:74: ConnectToPresentationServiceIfNeeded(); nit: add an empty ...
5 years, 9 months ago (2015-02-27 18:41:51 UTC) #18
whywhat
+Avi for ownership LGTM (if it's needed for gn/gypi files). https://codereview.chromium.org/935083002/diff/180001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): https://codereview.chromium.org/935083002/diff/180001/content/renderer/presentation/presentation_dispatcher.cc#newcode74 ...
5 years, 9 months ago (2015-02-27 19:15:54 UTC) #20
Avi (use Gerrit)
lgtm stampity stamp
5 years, 9 months ago (2015-02-27 19:20:38 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/935083002/200001
5 years, 9 months ago (2015-02-27 23:45:00 UTC) #24
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 9 months ago (2015-02-27 23:48:59 UTC) #25
commit-bot: I haz the power
5 years, 9 months ago (2015-02-27 23:49:37 UTC) #26
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/f0dd974b186bbaf4d1e6c5805666f7c0d71ae795
Cr-Commit-Position: refs/heads/master@{#318550}

Powered by Google App Engine
This is Rietveld 408576698