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

Issue 2949933002: [Media Router] Factor extension-related logic out of MediaRouterMojoImpl (Closed)

Created:
3 years, 6 months ago by takumif
Modified:
3 years, 5 months ago
Reviewers:
imcheng, zhaobin
CC:
chromium-reviews, imcheng+watch_chromium.org, Aaron Boodman, chfremer+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, feature-media-reviews_chromium.org, darin (slow to review), mfoltz+watch_chromium.org, qsr+mojo_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media Router] Factor extension-related logic out of MediaRouterMojoImpl We take the component-extension-waking and request-queueing logic out of MediaRouterMojoImpl and put it in its own class, EventPageRequestManager. In a future patch the part of MediaRouterMojoImpl that interfaces with the request manager will be further refactored into its own class, as described in the design doc below. Currently MediaRouterMojoImpl is the only client of the request manager, but the MediaRouteController will also use it in the future (see design doc). Design doc: https://docs.google.com/document/d/1PEcNLc9TTaRbeC1jZwVX7E3Rm3bJrqV8049cKXQ7Yho/edit BUG=737320 BUG=739516 Review-Url: https://codereview.chromium.org/2949933002 Cr-Commit-Position: refs/heads/master@{#484688} Committed: https://chromium.googlesource.com/chromium/src/+/0e3adbf3d7c3a0436a5d4007505fd3590489049e

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : broke #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Total comments: 20

Patch Set 8 : Address Derek's comments #

Total comments: 2

Patch Set 9 : Fix a build error #

Total comments: 2

Patch Set 10 : Remove includes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+858 lines, -635 lines) Patch
M chrome/browser/media/router/BUILD.gn View 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/browser/media/router/event_page_request_manager.h View 1 2 3 4 5 6 7 8 1 chunk +135 lines, -0 lines 0 comments Download
A chrome/browser/media/router/event_page_request_manager.cc View 1 2 3 4 5 6 7 1 chunk +159 lines, -0 lines 0 comments Download
A chrome/browser/media/router/event_page_request_manager_factory.h View 1 2 3 4 5 6 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/media/router/event_page_request_manager_factory.cc View 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/media/router/event_page_request_manager_unittest.cc View 1 2 3 4 5 6 7 1 chunk +237 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router_factory.cc View 3 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl.h View 1 2 3 4 5 6 11 chunks +12 lines, -75 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl.cc View 1 2 3 4 5 6 7 8 26 chunks +99 lines, -211 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc View 1 2 3 4 5 6 7 21 chunks +110 lines, -331 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_test.h View 1 2 3 4 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_test.cc View 1 2 3 4 3 chunks +7 lines, -11 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 37 (29 generated)
takumif
Please take a look, thanks!
3 years, 5 months ago (2017-06-28 00:25:37 UTC) #6
imcheng
I took a first pass at this patch and didn't look at the unit tests. ...
3 years, 5 months ago (2017-06-30 00:17:39 UTC) #7
takumif
https://codereview.chromium.org/2949933002/diff/120001/chrome/browser/media/router/event_page_request_manager.cc File chrome/browser/media/router/event_page_request_manager.cc (right): https://codereview.chromium.org/2949933002/diff/120001/chrome/browser/media/router/event_page_request_manager.cc#newcode81 chrome/browser/media/router/event_page_request_manager.cc:81: void EventPageRequestManager::EnqueueRequest(base::OnceClosure closure) { On 2017/06/30 00:17:38, imcheng wrote: ...
3 years, 5 months ago (2017-07-01 01:16:45 UTC) #9
imcheng
lgtm https://codereview.chromium.org/2949933002/diff/160001/chrome/browser/media/router/mojo/media_router_mojo_test.h File chrome/browser/media/router/mojo/media_router_mojo_test.h (right): https://codereview.chromium.org/2949933002/diff/160001/chrome/browser/media/router/mojo/media_router_mojo_test.h#newcode10 chrome/browser/media/router/mojo/media_router_mojo_test.h:10: #include <vector> <vector> not needed? Since we aren't ...
3 years, 5 months ago (2017-07-05 19:07:54 UTC) #10
zhaobin
lgtm https://codereview.chromium.org/2949933002/diff/180001/chrome/browser/media/router/mojo/media_router_mojo_test.h File chrome/browser/media/router/mojo/media_router_mojo_test.h (right): https://codereview.chromium.org/2949933002/diff/180001/chrome/browser/media/router/mojo/media_router_mojo_test.h#newcode8 chrome/browser/media/router/mojo/media_router_mojo_test.h:8: #include <memory> nit: #include seems not needed.
3 years, 5 months ago (2017-07-06 01:24:21 UTC) #24
takumif
Thanks for the reviews! https://codereview.chromium.org/2949933002/diff/160001/chrome/browser/media/router/mojo/media_router_mojo_test.h File chrome/browser/media/router/mojo/media_router_mojo_test.h (right): https://codereview.chromium.org/2949933002/diff/160001/chrome/browser/media/router/mojo/media_router_mojo_test.h#newcode10 chrome/browser/media/router/mojo/media_router_mojo_test.h:10: #include <vector> On 2017/07/05 19:07:54, ...
3 years, 5 months ago (2017-07-06 17:15:34 UTC) #25
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/2949933002/200001
3 years, 5 months ago (2017-07-06 18:33:35 UTC) #32
commit-bot: I haz the power
3 years, 5 months ago (2017-07-06 18:38:42 UTC) #37
Message was sent while issue was closed.
Committed patchset #10 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/0e3adbf3d7c3a0436a5d4007505f...

Powered by Google App Engine
This is Rietveld 408576698