Chromium Code Reviews| 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 22 matching lines...) Expand all Loading... | |
| 33 virtual void updateAvailableChangeWatched(bool watched) = 0; | 33 virtual void updateAvailableChangeWatched(bool watched) = 0; |
| 34 | 34 |
| 35 // Called when the frame requests to start a new session. | 35 // Called when the frame requests to start a new session. |
| 36 // The ownership of the |callbacks| argument is transferred to the embedder. | 36 // The ownership of the |callbacks| argument is transferred to the embedder. |
| 37 virtual void startSession(const WebString& presentationUrl, const WebString& presentationId, WebPresentationSessionClientCallbacks*) = 0; | 37 virtual void startSession(const WebString& presentationUrl, const WebString& presentationId, WebPresentationSessionClientCallbacks*) = 0; |
| 38 | 38 |
| 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 // TODO(s.singapati): make below send methods pure virtual once Chromium has the implementation. | |
| 44 // Called when the frame requests to send String message to an existing sess ion. | |
| 45 virtual void sendString(const WebString& url, const WebString& presentationI d, const WebString& message) | |
|
mlamouri (slow - plz ping)
2015/04/16 10:06:30
What's the |url| here? presentationUrl?
USE s.singapati at gmail.com
2015/04/16 16:10:02
Done. renamed to presentationUrl.
| |
| 46 { | |
| 47 BLINK_ASSERT_NOT_REACHED(); | |
| 48 } | |
| 49 // Called when the frame requests to send ArrayBuffer/View data to an existi ng session. | |
| 50 virtual void sendArrayBuffer(const WebString& url, const WebString& presenta tionId, const char* data, size_t length) | |
|
mlamouri (slow - plz ping)
2015/04/16 10:06:30
ditto
USE s.singapati at gmail.com
2015/04/16 16:10:02
Done.
| |
| 51 { | |
| 52 BLINK_ASSERT_NOT_REACHED(); | |
| 53 } | |
| 54 | |
| 43 // Called when the frame requests to close an existing session. | 55 // Called when the frame requests to close an existing session. |
| 44 virtual void closeSession(const WebString& url, const WebString& presentatio nId) = 0; | 56 virtual void closeSession(const WebString& url, const WebString& presentatio nId) = 0; |
| 45 }; | 57 }; |
| 46 | 58 |
| 47 } // namespace blink | 59 } // namespace blink |
| 48 | 60 |
| 49 #endif // WebPresentationClient_h | 61 #endif // WebPresentationClient_h |
| OLD | NEW |