| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 WebPresentationController_h | 5 #ifndef WebPresentationController_h |
| 6 #define WebPresentationController_h | 6 #define WebPresentationController_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 class WebString; | 13 class WebString; |
| 14 enum class WebPresentationConnectionCloseReason; | 14 enum class WebPresentationConnectionCloseReason; |
| 15 enum class WebPresentationConnectionState; | 15 enum class WebPresentationConnectionState; |
| 16 | 16 |
| 17 // The delegate Blink provides to WebPresentationClient in order to get updates. | 17 // The delegate Blink provides to WebPresentationClient in order to get updates. |
| 18 class BLINK_PLATFORM_EXPORT WebPresentationController { | 18 class BLINK_PLATFORM_EXPORT WebPresentationController { |
| 19 public: | 19 public: |
| 20 virtual ~WebPresentationController() {} | 20 virtual ~WebPresentationController() {} |
| 21 | 21 |
| 22 // Called when the presentation session is started by the embedder using | 22 // Called when the presentation session is started by the embedder using |
| (...skipping 15 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 // Called when a binary message of a session is received. | 39 // Called when a binary message of a session is received. |
| 40 virtual void didReceiveSessionBinaryMessage(WebPresentationConnectionClient*, | 40 virtual void didReceiveSessionBinaryMessage(WebPresentationConnectionClient*, |
| 41 const uint8_t* data, | 41 const uint8_t* data, |
| 42 size_t length) = 0; | 42 size_t length) = 0; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace blink | 45 } // namespace blink |
| 46 | 46 |
| 47 #endif // WebPresentationController_h | 47 #endif // WebPresentationController_h |
| OLD | NEW |