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

Unified Diff: content/common/presentation/presentation_service.mojom

Issue 1430413003: [Media Router] Connection state change listening redesign part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/presentation/presentation_service.mojom
diff --git a/content/common/presentation/presentation_service.mojom b/content/common/presentation/presentation_service.mojom
index 422ae5874d4d1a572136a7dadaf5557a824e8f4d..5f0f5e442c387f2396f015f767083bac1f7e653c 100644
--- a/content/common/presentation/presentation_service.mojom
+++ b/content/common/presentation/presentation_service.mojom
@@ -90,12 +90,6 @@ interface PresentationService {
// Called when closeSession() is called by the frame.
CloseSession(string presentation_url, string presentation_id);
- // Starts listening for state changes for sessions created on this frame.
- // When state change occurs, PresentationServiceClient::OnSessionStateChanged
- // will be invoked with the session and its new state.
- // This is called after a presentation session is created.
- ListenForSessionStateChange();
-
// Starts listening for messages for session with |sessionInfo|.
// Messages will be received in
// PresentationServiceClient::OnSessionMessagesReceived.
@@ -116,9 +110,10 @@ interface PresentationServiceClient {
// the current known state. It will then be called to notify of state updates.
OnScreenAvailabilityUpdated(string url, bool available);
- // See PresentationService::ListenForSessionStateChange.
- OnSessionStateChanged(PresentationSessionInfo sessionInfo,
- PresentationConnectionState newState);
+ // Called when the state of PresentationConnection |connection| started on
+ // this frame has changed to |newState|.
+ OnConnectionStateChanged(PresentationSessionInfo connection,
+ PresentationConnectionState newState);
// See PresentationService::ListenForSessionMessages.
OnSessionMessagesReceived(PresentationSessionInfo sessionInfo,

Powered by Google App Engine
This is Rietveld 408576698