Chromium Code Reviews| Index: third_party/WebKit/public/platform/modules/presentation/WebPresentationReceiver.h |
| diff --git a/third_party/WebKit/public/platform/modules/presentation/WebPresentationReceiver.h b/third_party/WebKit/public/platform/modules/presentation/WebPresentationReceiver.h |
| index 0443b0eb49a4b1ddd7aec74fc12c2ecae183e7ed..064709c13dfc8694ef472bf7ba567fe0d9a9dbd7 100644 |
| --- a/third_party/WebKit/public/platform/modules/presentation/WebPresentationReceiver.h |
| +++ b/third_party/WebKit/public/platform/modules/presentation/WebPresentationReceiver.h |
| @@ -11,6 +11,7 @@ namespace blink { |
| struct WebPresentationSessionInfo; |
| class WebPresentationConnection; |
| +enum class WebPresentationConnectionState; |
| // The delegate Blink provides to WebPresentationReceiverClient in order to get |
| // updates. |
| @@ -21,6 +22,13 @@ class BLINK_PLATFORM_EXPORT WebPresentationReceiver { |
| // Called when receiver page gets an incoming connection. |
| virtual WebPresentationConnection* onReceiverConnectionAvailable( |
| const WebPresentationSessionInfo&) = 0; |
| + |
| + // Called when receiver page gets destroyed. |
| + virtual void didChangeSessionState(WebPresentationConnectionState) = 0; |
| + |
| + // Called when any PresentationConnection object on receiver page invokes |
| + // connnection.terminate(). |
| + virtual void closeWindow() = 0; |
|
mark a. foltz
2017/02/25 01:43:12
Would prefer terminateConnection() for consistency
zhaobin
2017/02/28 04:25:19
Done.
|
| }; |
| } // namespace blink |