| 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
|
|
|