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

Issue 2598063002: [Presentation API] Handle multiple Presentation URLs in PresentationRequest::getAvailability() (Closed)

Created:
3 years, 12 months ago by zhaobin
Modified:
3 years, 11 months ago
Reviewers:
mark a. foltz, imcheng
CC:
mlamouri (slow - plz ping), chromium-reviews, darin-cc_chromium.org, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Presentation API] Handle multiple Presentation URLs in PresentationRequest::getAvailability() - Handle muliple URLs in getAvailability(), startListening(), and stopListening() - When screen availability for a particular url comes back, update all PresentationRequests related to this url - Added PresentationDispatcherUnittest BUG=627655 Review-Url: https://codereview.chromium.org/2598063002 Cr-Commit-Position: refs/heads/master@{#445278} Committed: https://chromium.googlesource.com/chromium/src/+/9bc9d0de59b3d141441fae948fd09298fcfb5f75

Patch Set 1 #

Total comments: 14

Patch Set 2 : resolve code review comments from Mark #

Total comments: 50

Patch Set 3 : seperate AvailabilityStatus from ListeningStatus and simplify book keeping code #

Total comments: 35

Patch Set 4 : rebase (skip unittest) #

Patch Set 5 : resolve code review comments from Mark #

Patch Set 6 : merge presentation_dispatcher_unittest.cc #

Total comments: 34

Patch Set 7 : resolve code review comments from Mark #

Total comments: 27

Patch Set 8 : resolve code review comments from Derek #

Total comments: 6

Patch Set 9 : resolve code review comments from Derek #

Total comments: 2

Patch Set 10 : resolve code review comments from Derek #

Unified diffs Side-by-side diffs Delta from patch set Stats (+608 lines, -100 lines) Patch
M content/renderer/presentation/presentation_dispatcher.h View 1 2 3 4 5 6 7 8 3 chunks +58 lines, -14 lines 0 comments Download
M content/renderer/presentation/presentation_dispatcher.cc View 1 2 3 4 5 6 7 8 9 5 chunks +237 lines, -75 lines 0 comments Download
M content/renderer/presentation/presentation_dispatcher_unittest.cc View 1 2 3 4 5 6 7 9 chunks +313 lines, -11 lines 0 comments Download

Messages

Total messages: 42 (17 generated)
zhaobin
3 years, 12 months ago (2016-12-22 19:07:41 UTC) #2
mark a. foltz
Overall looks good: wanted to discuss design alternatives. Thanks for adding a unit test. https://codereview.chromium.org/2598063002/diff/1/content/renderer/presentation/presentation_dispatcher.cc ...
3 years, 12 months ago (2016-12-23 01:04:22 UTC) #3
zhaobin
Resolved code review comments from Mark and updated AvailabilityStatus to track individual url now. https://codereview.chromium.org/2598063002/diff/1/content/renderer/presentation/presentation_dispatcher.cc ...
3 years, 11 months ago (2016-12-29 18:48:38 UTC) #5
mark a. foltz
Overall looks good. The bookkeeping to track callbacks and observers was a little more complicated ...
3 years, 11 months ago (2017-01-03 21:47:13 UTC) #6
mlamouri (slow - plz ping)
I left some comments on top of mfoltz@. Mostly superficial because I didn't want to ...
3 years, 11 months ago (2017-01-04 16:15:00 UTC) #7
mark a. foltz
I looked through the code that controls availability monitoring from Blink. There are three cases ...
3 years, 11 months ago (2017-01-05 22:40:49 UTC) #8
zhaobin
Please review patch 3 against base. Implementation is different from patch 2. Seperate PresentationAvailability status ...
3 years, 11 months ago (2017-01-06 01:55:21 UTC) #10
mark a. foltz
TBD: Review unit test Thank you! This patch is easier to understand. https://codereview.chromium.org/2598063002/diff/80001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc ...
3 years, 11 months ago (2017-01-11 00:06:03 UTC) #11
mlamouri (slow - plz ping)
zhaobin@, is there something specifically you want me to look at here or is mfoltz@ ...
3 years, 11 months ago (2017-01-11 11:19:41 UTC) #12
zhaobin
On 2017/01/11 11:19:41, mlamouri wrote: > zhaobin@, is there something specifically you want me to ...
3 years, 11 months ago (2017-01-11 18:27:40 UTC) #13
zhaobin
I will send out a new iteration to merge unit tests. https://codereview.chromium.org/2598063002/diff/80001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): ...
3 years, 11 months ago (2017-01-12 03:02:13 UTC) #15
mark a. foltz
Went ahead and added comments on unit test (hopefully still apply after merge). https://codereview.chromium.org/2598063002/diff/80001/content/renderer/presentation/presentation_dispatcher_unittest.cc File ...
3 years, 11 months ago (2017-01-13 19:01:17 UTC) #16
mark a. foltz
One minor comment on the .cc. Otherwise looks good. https://codereview.chromium.org/2598063002/diff/160001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): https://codereview.chromium.org/2598063002/diff/160001/content/renderer/presentation/presentation_dispatcher.cc#newcode320 content/renderer/presentation/presentation_dispatcher.cc:320: ...
3 years, 11 months ago (2017-01-13 19:06:33 UTC) #17
zhaobin
https://codereview.chromium.org/2598063002/diff/160001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): https://codereview.chromium.org/2598063002/diff/160001/content/renderer/presentation/presentation_dispatcher.cc#newcode320 content/renderer/presentation/presentation_dispatcher.cc:320: auto status_it = On 2017/01/13 19:06:32, mark a. foltz ...
3 years, 11 months ago (2017-01-14 01:45:33 UTC) #18
imcheng
https://codereview.chromium.org/2598063002/diff/180001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): https://codereview.chromium.org/2598063002/diff/180001/content/renderer/presentation/presentation_dispatcher.cc#newcode289 content/renderer/presentation/presentation_dispatcher.cc:289: availability_set_.insert(base::WrapUnique(status)); Do we ever erase from / clear |availability_set_|? ...
3 years, 11 months ago (2017-01-17 20:53:17 UTC) #19
mark a. foltz
LGTM with imcheng@ comments addressed. https://codereview.chromium.org/2598063002/diff/180001/content/renderer/presentation/presentation_dispatcher.h File content/renderer/presentation/presentation_dispatcher.h (right): https://codereview.chromium.org/2598063002/diff/180001/content/renderer/presentation/presentation_dispatcher.h#newcode193 content/renderer/presentation/presentation_dispatcher.h:193: struct AvailabilityStatus { On ...
3 years, 11 months ago (2017-01-17 21:04:24 UTC) #20
zhaobin
https://codereview.chromium.org/2598063002/diff/180001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): https://codereview.chromium.org/2598063002/diff/180001/content/renderer/presentation/presentation_dispatcher.cc#newcode289 content/renderer/presentation/presentation_dispatcher.cc:289: availability_set_.insert(base::WrapUnique(status)); On 2017/01/17 20:53:17, imcheng wrote: > Do we ...
3 years, 11 months ago (2017-01-18 03:38:57 UTC) #21
mlamouri (slow - plz ping)
Removing self from reviewer list as it seems I'm not required here.
3 years, 11 months ago (2017-01-18 10:31:36 UTC) #22
mlamouri (slow - plz ping)
3 years, 11 months ago (2017-01-18 10:31:50 UTC) #24
imcheng
https://codereview.chromium.org/2598063002/diff/200001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): https://codereview.chromium.org/2598063002/diff/200001/content/renderer/presentation/presentation_dispatcher.cc#newcode597 content/renderer/presentation/presentation_dispatcher.cc:597: void PresentationDispatcher::StopListeningToURL(const GURL& url) { nit: rename to MaybeStopListeningToURL ...
3 years, 11 months ago (2017-01-18 22:40:32 UTC) #25
zhaobin
https://codereview.chromium.org/2598063002/diff/200001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): https://codereview.chromium.org/2598063002/diff/200001/content/renderer/presentation/presentation_dispatcher.cc#newcode597 content/renderer/presentation/presentation_dispatcher.cc:597: void PresentationDispatcher::StopListeningToURL(const GURL& url) { On 2017/01/18 22:40:32, imcheng ...
3 years, 11 months ago (2017-01-19 00:56:16 UTC) #26
imcheng
lgtm https://codereview.chromium.org/2598063002/diff/220001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): https://codereview.chromium.org/2598063002/diff/220001/content/renderer/presentation/presentation_dispatcher.cc#newcode652 content/renderer/presentation/presentation_dispatcher.cc:652: availability_set_.erase(listener_it++); The ++ here is redundant. Also just ...
3 years, 11 months ago (2017-01-19 20:35:48 UTC) #27
zhaobin
https://codereview.chromium.org/2598063002/diff/220001/content/renderer/presentation/presentation_dispatcher.cc File content/renderer/presentation/presentation_dispatcher.cc (right): https://codereview.chromium.org/2598063002/diff/220001/content/renderer/presentation/presentation_dispatcher.cc#newcode652 content/renderer/presentation/presentation_dispatcher.cc:652: availability_set_.erase(listener_it++); On 2017/01/19 20:35:47, imcheng wrote: > The ++ ...
3 years, 11 months ago (2017-01-21 01:00:34 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2598063002/240001
3 years, 11 months ago (2017-01-21 07:10:36 UTC) #39
commit-bot: I haz the power
3 years, 11 months ago (2017-01-21 07:14:40 UTC) #42
Message was sent while issue was closed.
Committed patchset #10 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/9bc9d0de59b3d141441fae948fd0...

Powered by Google App Engine
This is Rietveld 408576698