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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 79 |
80 // Stop listening to changes in presentation displays availability. The | 80 // Stop listening to changes in presentation displays availability. The |
81 // observer will no longer be notified in case of a change. | 81 // observer will no longer be notified in case of a change. |
82 virtual void stopListening(WebPresentationAvailabilityObserver*) = 0; | 82 virtual void stopListening(WebPresentationAvailabilityObserver*) = 0; |
83 | 83 |
84 // Called when a defaultRequest has been set. It sends the url associated | 84 // Called when a defaultRequest has been set. It sends the url associated |
85 // with it for the embedder. | 85 // with it for the embedder. |
86 virtual void setDefaultPresentationUrls(const WebVector<WebURL>&) = 0; | 86 virtual void setDefaultPresentationUrls(const WebVector<WebURL>&) = 0; |
87 }; | 87 }; |
88 | 88 |
| 89 class WebPresentationMessageObserver { |
| 90 public: |
| 91 // Called when a text message of a session is received. |
| 92 virtual void didReceiveSessionTextMessage(WebPresentationConnectionClient*,
const WebString& message) = 0; |
| 93 |
| 94 // Called when a binary message of a session is received. |
| 95 virtual void didReceiveSessionBinaryMessage(WebPresentationConnectionClient*
, const uint8_t* data, size_t length) = 0; |
| 96 }; |
| 97 |
89 } // namespace blink | 98 } // namespace blink |
90 | 99 |
91 #endif // WebPresentationClient_h | 100 #endif // WebPresentationClient_h |
OLD | NEW |