| 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 28 matching lines...) Expand all Loading... |
| 39 // Called when the frame requests to join an existing session. | 39 // Called when the frame requests to join an existing session. |
| 40 // The ownership of the |callbacks| argument is transferred to the embedder. | 40 // The ownership of the |callbacks| argument is transferred to the embedder. |
| 41 virtual void joinSession(const WebString& presentationUrl, const WebString&
presentationId, WebPresentationSessionClientCallbacks*) = 0; | 41 virtual void joinSession(const WebString& presentationUrl, const WebString&
presentationId, WebPresentationSessionClientCallbacks*) = 0; |
| 42 | 42 |
| 43 // Called when the frame requests to send String message to an existing sess
ion. | 43 // Called when the frame requests to send String message to an existing sess
ion. |
| 44 virtual void sendString(const WebString& presentationUrl, const WebString& p
resentationId, const WebString& message) = 0; | 44 virtual void sendString(const WebString& presentationUrl, const WebString& p
resentationId, const WebString& message) = 0; |
| 45 | 45 |
| 46 // Called when the frame requests to send ArrayBuffer/View data to an existi
ng session. | 46 // Called when the frame requests to send ArrayBuffer/View data to an existi
ng session. |
| 47 virtual void sendArrayBuffer(const WebString& presentationUrl, const WebStri
ng& presentationId, const uint8_t* data, size_t length) = 0; | 47 virtual void sendArrayBuffer(const WebString& presentationUrl, const WebStri
ng& presentationId, const uint8_t* data, size_t length) = 0; |
| 48 | 48 |
| 49 // Called when the frame requests to send Blob data to an existing session. |
| 50 // Embedder copies the data and the ownership is not transferred. |
| 51 virtual void sendBlobData(const WebString& presentationUrl, const WebString&
presentationId, const uint8_t* data, size_t length) |
| 52 { |
| 53 // TODO(s.singapati): Make this method pure virtual once Chromium has th
e implementation. |
| 54 BLINK_ASSERT_NOT_REACHED(); |
| 55 } |
| 56 |
| 49 // Called when the frame requests to close an existing session. | 57 // Called when the frame requests to close an existing session. |
| 50 virtual void closeSession(const WebString& url, const WebString& presentatio
nId) = 0; | 58 virtual void closeSession(const WebString& url, const WebString& presentatio
nId) = 0; |
| 51 }; | 59 }; |
| 52 | 60 |
| 53 } // namespace blink | 61 } // namespace blink |
| 54 | 62 |
| 55 #endif // WebPresentationClient_h | 63 #endif // WebPresentationClient_h |
| OLD | NEW |