Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: public/platform/modules/presentation/WebPresentationController.h

Issue 1206513004: [PresentationAPI] on-session-message handler for binary messages (Blink side). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698