| 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 WebPresentationClient_h | 5 #ifndef WebPresentationClient_h |
| 6 #define WebPresentationClient_h | 6 #define WebPresentationClient_h |
| 7 | 7 |
| 8 #include "public/platform/WebCallbacks.h" | 8 #include "public/platform/WebCallbacks.h" |
| 9 #include "public/platform/WebCommon.h" | 9 #include "public/platform/WebCommon.h" |
| 10 | 10 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 const uint8_t* data, | 78 const uint8_t* data, |
| 79 size_t length, | 79 size_t length, |
| 80 const WebPresentationConnectionProxy*) = 0; | 80 const WebPresentationConnectionProxy*) = 0; |
| 81 | 81 |
| 82 // Called when the frame requests to close an existing session. | 82 // Called when the frame requests to close an existing session. |
| 83 virtual void closeSession(const WebURL& presentationUrl, | 83 virtual void closeSession(const WebURL& presentationUrl, |
| 84 const WebString& presentationId, | 84 const WebString& presentationId, |
| 85 const WebPresentationConnectionProxy*) = 0; | 85 const WebPresentationConnectionProxy*) = 0; |
| 86 | 86 |
| 87 // Called when the frame requests to terminate an existing session. | 87 // Called when the frame requests to terminate an existing session. |
| 88 virtual void terminateSession(const WebURL& presentationUrl, | 88 virtual void terminateConnection(const WebURL& presentationUrl, |
| 89 const WebString& presentationId) = 0; | 89 const WebString& presentationId) = 0; |
| 90 | 90 |
| 91 // Called when the frame wants to know the availability of a presentation | 91 // Called when the frame wants to know the availability of a presentation |
| 92 // display for |availabilityUrl|. | 92 // display for |availabilityUrl|. |
| 93 virtual void getAvailability( | 93 virtual void getAvailability( |
| 94 const WebVector<WebURL>& availabilityUrls, | 94 const WebVector<WebURL>& availabilityUrls, |
| 95 std::unique_ptr<WebPresentationAvailabilityCallbacks>) = 0; | 95 std::unique_ptr<WebPresentationAvailabilityCallbacks>) = 0; |
| 96 | 96 |
| 97 // Start listening to changes in presentation displays availability. The | 97 // Start listening to changes in presentation displays availability. The |
| 98 // observer will be notified in case of a change. The observer is | 98 // observer will be notified in case of a change. The observer is |
| 99 // respensible to call stopListening() before being destroyed. | 99 // respensible to call stopListening() before being destroyed. |
| 100 virtual void startListening(WebPresentationAvailabilityObserver*) = 0; | 100 virtual void startListening(WebPresentationAvailabilityObserver*) = 0; |
| 101 | 101 |
| 102 // Stop listening to changes in presentation displays availability. The | 102 // Stop listening to changes in presentation displays availability. The |
| 103 // observer will no longer be notified in case of a change. | 103 // observer will no longer be notified in case of a change. |
| 104 virtual void stopListening(WebPresentationAvailabilityObserver*) = 0; | 104 virtual void stopListening(WebPresentationAvailabilityObserver*) = 0; |
| 105 | 105 |
| 106 // Called when a defaultRequest has been set. It sends the url associated | 106 // Called when a defaultRequest has been set. It sends the url associated |
| 107 // with it for the embedder. | 107 // with it for the embedder. |
| 108 virtual void setDefaultPresentationUrls(const WebVector<WebURL>&) = 0; | 108 virtual void setDefaultPresentationUrls(const WebVector<WebURL>&) = 0; |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 } // namespace blink | 111 } // namespace blink |
| 112 | 112 |
| 113 #endif // WebPresentationClient_h | 113 #endif // WebPresentationClient_h |
| OLD | NEW |