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 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 12 matching lines...) Expand all Loading... |
23 virtual WebPresentationConnection* OnReceiverConnectionAvailable( | 23 virtual WebPresentationConnection* OnReceiverConnectionAvailable( |
24 const WebPresentationInfo&) = 0; | 24 const WebPresentationInfo&) = 0; |
25 | 25 |
26 // Called when receiver page gets destroyed. | 26 // Called when receiver page gets destroyed. |
27 // TODO: Rename to onReceiverTerminated? | 27 // TODO: Rename to onReceiverTerminated? |
28 virtual void DidChangeConnectionState(WebPresentationConnectionState) = 0; | 28 virtual void DidChangeConnectionState(WebPresentationConnectionState) = 0; |
29 | 29 |
30 // Called when any PresentationConnection object on receiver page invokes | 30 // Called when any PresentationConnection object on receiver page invokes |
31 // connnection.terminate(). | 31 // connnection.terminate(). |
32 virtual void TerminateConnection() = 0; | 32 virtual void TerminateConnection() = 0; |
| 33 |
| 34 // Called when any receiver connection switches to 'closed' state. Remove the |
| 35 // connection from PresentationReceiver's connection list. |
| 36 virtual void RemoveConnection(WebPresentationConnection*) = 0; |
33 }; | 37 }; |
34 | 38 |
35 } // namespace blink | 39 } // namespace blink |
36 | 40 |
37 #endif // WebPresentationReceiver_h | 41 #endif // WebPresentationReceiver_h |
OLD | NEW |