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

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

Issue 1151423009: [PresentationAPI] Make sendBlobData() pure virtual in WebPresentationClient. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Embedder copies the |data| and the ownership is not transferred. 47 // Embedder copies the |data| and the ownership is not transferred.
48 virtual void sendArrayBuffer(const WebString& presentationUrl, const WebStri ng& presentationId, const uint8_t* data, size_t length) = 0; 48 virtual void sendArrayBuffer(const WebString& presentationUrl, const WebStri ng& presentationId, const uint8_t* data, size_t length) = 0;
49 49
50 // Called when the frame requests to send Blob data to an existing session. 50 // Called when the frame requests to send Blob data to an existing session.
51 // Embedder copies the |data| and the ownership is not transferred. 51 // Embedder copies the |data| and the ownership is not transferred.
52 virtual void sendBlobData(const WebString& presentationUrl, const WebString& presentationId, const uint8_t* data, size_t length) 52 virtual void sendBlobData(const WebString& presentationUrl, const WebString& presentationId, const uint8_t* data, size_t length) = 0;
53 {
54 // TODO(s.singapati): Make this method pure virtual once Chromium has th e implementation.
55 BLINK_ASSERT_NOT_REACHED();
56 }
57 53
58 // Called when the frame requests to close an existing session. 54 // Called when the frame requests to close an existing session.
59 virtual void closeSession(const WebString& url, const WebString& presentatio nId) = 0; 55 virtual void closeSession(const WebString& url, const WebString& presentatio nId) = 0;
60 }; 56 };
61 57
62 } // namespace blink 58 } // namespace blink
63 59
64 #endif // WebPresentationClient_h 60 #endif // WebPresentationClient_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698