| 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 WebPresentationController_h | 5 #ifndef WebPresentationController_h |
| 6 #define WebPresentationController_h | 6 #define WebPresentationController_h |
| 7 | 7 |
| 8 #include "public/platform/WebCommon.h" | 8 #include "public/platform/WebCommon.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 // Called when the presentation session is started by the embedder using | 28 // Called when the presentation session is started by the embedder using |
| 29 // the default presentation URL and id. | 29 // the default presentation URL and id. |
| 30 virtual void didStartDefaultSession(WebPresentationSessionClient*) = 0; | 30 virtual void didStartDefaultSession(WebPresentationSessionClient*) = 0; |
| 31 | 31 |
| 32 // Called when the state of a session changes. | 32 // Called when the state of a session changes. |
| 33 virtual void didChangeSessionState(WebPresentationSessionClient*, WebPresent
ationSessionState) = 0; | 33 virtual void didChangeSessionState(WebPresentationSessionClient*, WebPresent
ationSessionState) = 0; |
| 34 | 34 |
| 35 // Called when a text message of a session is received. | 35 // Called when a text message of a session is received. |
| 36 virtual void didReceiveSessionTextMessage(WebPresentationSessionClient*, con
st WebString& message) = 0; | 36 virtual void didReceiveSessionTextMessage(WebPresentationSessionClient*, con
st WebString& message) = 0; |
| 37 |
| 38 // Called when a array buffer message of a session is received. |
| 39 virtual void didReceiveSessionArrayBufferMessage(WebPresentationSessionClien
t*, const uint8_t* data, size_t length) = 0; |
| 40 |
| 41 // Called when a blob message of a session is received. |
| 42 virtual void didReceiveSessionBlobMessage(WebPresentationSessionClient*, con
st uint8_t* data, size_t length) = 0; |
| 37 }; | 43 }; |
| 38 | 44 |
| 39 } // namespace blink | 45 } // namespace blink |
| 40 | 46 |
| 41 #endif // WebPresentationController_h | 47 #endif // WebPresentationController_h |
| OLD | NEW |