| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 WebPresentationConnectionProxy_h | 5 #ifndef WebPresentationConnectionProxy_h |
| 6 #define WebPresentationConnectionProxy_h | 6 #define WebPresentationConnectionProxy_h |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 | 9 |
| 10 enum class WebPresentationConnectionState; |
| 11 |
| 10 // The implementation the embedder has to provide for the Presentation API to | 12 // The implementation the embedder has to provide for the Presentation API to |
| 11 // work. This class is used to send messages to a PresentationConnection hosted | 13 // work. This class is used to send messages to a PresentationConnection hosted |
| 12 // in a different frame. | 14 // in a different frame. |
| 13 class WebPresentationConnectionProxy { | 15 class WebPresentationConnectionProxy { |
| 14 public: | 16 public: |
| 15 virtual ~WebPresentationConnectionProxy() = default; | 17 virtual ~WebPresentationConnectionProxy() = default; |
| 16 | 18 |
| 17 // Close target connection. | 19 // Close target connection. |
| 18 virtual void Close() const = 0; | 20 virtual void Close() const = 0; |
| 21 |
| 22 // Notify target connection about connection state change. |
| 23 virtual void NotifyTargetConnection(WebPresentationConnectionState) = 0; |
| 19 }; | 24 }; |
| 20 | 25 |
| 21 } // namespace blink | 26 } // namespace blink |
| 22 | 27 |
| 23 #endif // WebPresentationConnectionProxy_h | 28 #endif // WebPresentationConnectionProxy_h |
| OLD | NEW |