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

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: 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/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..ac58bf0e8ef08a3688c833f26b219eaa8254179d 100644
--- a/content/public/browser/presentation_service_delegate.h
+++ b/content/public/browser/presentation_service_delegate.h
@@ -23,7 +23,7 @@ using PresentationSessionStartedCallback =
base::Callback<void(const PresentationSessionInfo&)>;
using PresentationSessionErrorCallback =
base::Callback<void(const PresentationError&)>;
-using SessionStateChangedCallback =
+using PresentationConnectionStateChangedCallback =
base::Callback<void(const PresentationSessionInfo&,
PresentationConnectionState)>;
@@ -168,14 +168,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

Powered by Google App Engine
This is Rietveld 408576698