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

Unified Diff: content/public/browser/presentation_service_delegate.h

Issue 1430413003: [Media Router] Connection state change listening redesign part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/public/browser/presentation_service_delegate.h
diff --git a/content/public/browser/presentation_service_delegate.h b/content/public/browser/presentation_service_delegate.h
index ba0bf99d56bfddcb0da9e3790d335432d6d99c09..28a83285f71445ca6c625307fcac2c28b810531a 100644
--- a/content/public/browser/presentation_service_delegate.h
+++ b/content/public/browser/presentation_service_delegate.h
@@ -23,9 +23,8 @@ using PresentationSessionStartedCallback =
base::Callback<void(const PresentationSessionInfo&)>;
using PresentationSessionErrorCallback =
base::Callback<void(const PresentationError&)>;
-using SessionStateChangedCallback =
- base::Callback<void(const PresentationSessionInfo&,
- PresentationConnectionState)>;
+using PresentationConnectionStateChangedCallback =
+ base::Callback<void(PresentationConnectionState)>;
// Param #0: a vector of messages that are received.
// Param #1: tells the callback handler that it may reuse strings or buffers
@@ -168,14 +167,17 @@ class CONTENT_EXPORT PresentationServiceDelegate {
scoped_ptr<PresentationSessionMessage> message,
const SendMessageCallback& send_message_cb) = 0;
- // Continuously listen for presentation session state changes for a frame.
+ // Continuously listen for state changes for a PresentationConnection in a
+ // frame.
// |render_process_id|, |render_frame_id|: ID of frame.
- // |state_changed_cb|: Invoked with the session and its new state whenever
- // there is a state change.
- virtual void ListenForSessionStateChange(
+ // |connection|: PresentationConnection to listen for state changes.
+ // |state_changed_cb|: Invoked with the PresentationConnection and its new
+ // state whenever there is a state change.
+ virtual void ListenForConnectionStateChange(
int render_process_id,
int render_frame_id,
- const SessionStateChangedCallback& state_changed_cb) = 0;
+ const PresentationSessionInfo& connection,
+ const PresentationConnectionStateChangedCallback& state_changed_cb) = 0;
};
} // namespace content
« no previous file with comments | « content/common/presentation/presentation_service.mojom ('k') | content/renderer/presentation/presentation_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698