| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebPresentationReceiver_h | 5 #ifndef WebPresentationReceiver_h |
| 6 #define WebPresentationReceiver_h | 6 #define WebPresentationReceiver_h |
| 7 | 7 |
| 8 #include "public/platform/WebCommon.h" | 8 #include "public/platform/WebCommon.h" |
| 9 #include "public/platform/modules/presentation/WebPresentationClient.h" |
| 9 | 10 |
| 10 namespace blink { | 11 namespace blink { |
| 11 | 12 |
| 12 class WebPresentationConnectionClient; | |
| 13 | |
| 14 // The delegate Blink provides to WebPresentationReceiverClient in order to get
updates. | 13 // The delegate Blink provides to WebPresentationReceiverClient in order to get
updates. |
| 15 class BLINK_PLATFORM_EXPORT WebPresentationReceiver { | 14 class BLINK_PLATFORM_EXPORT WebPresentationReceiver : public WebPresentationMess
ageObserver { |
| 16 public: | 15 public: |
| 17 virtual ~WebPresentationReceiver() = default; | 16 virtual ~WebPresentationReceiver() = default; |
| 18 | 17 |
| 19 // Called when receiver page gets an incoming connection. | 18 // Called when receiver page gets an incoming connection. |
| 20 virtual void onReceiverConnectionAvailable(WebPresentationConnectionClient*)
= 0; | 19 virtual void onReceiverConnectionAvailable(WebPresentationConnectionClient*)
= 0; |
| 21 }; | 20 }; |
| 22 | 21 |
| 23 } // namespace blink | 22 } // namespace blink |
| 24 | 23 |
| 25 #endif // WebPresentationReceiver_h | 24 #endif // WebPresentationReceiver_h |
| OLD | NEW |