|
[Media Router] Connection state change listening redesign part 2.
- PresentationDispatcher no longer calls ListenForSessionStateChange
on PresentationService startup.
- When a PresentationConnection is successfully created, PSImpl will
call back to PSDImpl to start listening for state changes for that
connection. This required adding a PresentationSessionInfo (to be
renamed soon) param to the PSD's ListenForConnectionStateChange API.
- PSDImpl no longer uses PresentationSessionStateObserver. Instead it
uses PresentationConnectionStateObserver, which listens on a
per-connection basis and doesn't use a MediaRoutesObserver.
Note that this change is not backwards compatible. It is expected this
will break state change for users with older MR extensions. It will
also break Android since state change isn't implemented there yet.
Given that the PresentationConnection states spec is still in progress,
it's probably not an unreasonable thing to do.
Also did some best-effort renaming. (Renaming patch soon)
BUG= 529893
Committed: https://crrev.com/f3e5a01a75bbdd97e5d218c4fb5154de28745a4e
Cr-Commit-Position: refs/heads/master@{#360740}
Total comments: 12
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+422 lines, -681 lines) |
Patch |
 |
M |
chrome/browser/media/android/router/media_router_android.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/android/router/media_router_android.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/router/media_route.h
|
View
|
1
|
1 chunk |
+0 lines, -22 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/router/media_route.cc
|
View
|
1
|
1 chunk |
+0 lines, -30 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/router/media_router.h
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+17 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/router/media_router.gypi
|
View
|
1
2
3
4
5
|
3 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/media/router/media_router_base.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+56 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/media/router/media_router_base.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+51 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/router/media_router_mojo_impl.h
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+2 lines, -16 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/router/media_router_mojo_impl.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+2 lines, -43 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/router/media_router_mojo_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+31 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/router/mock_media_router.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+16 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/router/presentation_connection_state_observer.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -40 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/router/presentation_connection_state_observer.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -24 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/router/presentation_service_delegate_impl.h
|
View
|
1
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/router/presentation_service_delegate_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
12 chunks |
+52 lines, -54 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/router/presentation_service_delegate_impl_unittest.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+53 lines, -1 line |
0 comments
|
Download
|
 |
D |
chrome/browser/media/router/presentation_session_state_observer.h
|
View
|
|
1 chunk |
+0 lines, -85 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/media/router/presentation_session_state_observer.cc
|
View
|
|
1 chunk |
+0 lines, -66 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/media/router/presentation_session_state_observer_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -132 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/router/test_helper.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+7 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/router/test_helper.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests_unit.gypi
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/presentation/presentation_service_impl.h
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+12 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/browser/presentation/presentation_service_impl.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+46 lines, -40 lines |
0 comments
|
Download
|
 |
M |
content/browser/presentation/presentation_service_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
7 chunks |
+42 lines, -30 lines |
0 comments
|
Download
|
 |
M |
content/common/presentation/presentation_service.mojom
|
View
|
1
|
2 chunks |
+4 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/presentation_service_delegate.h
|
View
|
1
2
3
4
5
|
2 chunks |
+10 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/renderer/presentation/presentation_dispatcher.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/renderer/presentation/presentation_dispatcher.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
Total messages: 16 (6 generated)
|