| 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 CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ | 5 #ifndef CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ |
| 6 #define CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ | 6 #define CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/linked_ptr.h" | 9 #include "base/memory/linked_ptr.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 explicit PresentationDispatcher(RenderFrame* render_frame); | 28 explicit PresentationDispatcher(RenderFrame* render_frame); |
| 29 ~PresentationDispatcher() override; | 29 ~PresentationDispatcher() override; |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 // WebPresentationClient implementation. | 32 // WebPresentationClient implementation. |
| 33 virtual void setController( | 33 virtual void setController( |
| 34 blink::WebPresentationController* controller); | 34 blink::WebPresentationController* controller); |
| 35 virtual void updateAvailableChangeWatched(bool watched); | 35 virtual void updateAvailableChangeWatched(bool watched); |
| 36 virtual void startSession( | 36 virtual void startSession( |
| 37 const blink::WebString& presentationUrl, | 37 const blink::WebString& presentationUrl, |
| 38 blink::WebPresentationSessionClientCallbacks* callback); |
| 39 // TODO(mlamouri): remove this one when the one above is used by Blink. |
| 40 virtual void startSession( |
| 41 const blink::WebString& presentationUrl, |
| 38 const blink::WebString& presentationId, | 42 const blink::WebString& presentationId, |
| 39 blink::WebPresentationSessionClientCallbacks* callback); | 43 blink::WebPresentationSessionClientCallbacks* callback); |
| 40 virtual void joinSession( | 44 virtual void joinSession( |
| 41 const blink::WebString& presentationUrl, | 45 const blink::WebString& presentationUrl, |
| 42 const blink::WebString& presentationId, | 46 const blink::WebString& presentationId, |
| 43 blink::WebPresentationSessionClientCallbacks* callback); | 47 blink::WebPresentationSessionClientCallbacks* callback); |
| 44 virtual void sendString( | 48 virtual void sendString( |
| 45 const blink::WebString& presentationUrl, | 49 const blink::WebString& presentationUrl, |
| 46 const blink::WebString& presentationId, | 50 const blink::WebString& presentationId, |
| 47 const blink::WebString& message); | 51 const blink::WebString& message); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 using MessageRequestQueue = | 98 using MessageRequestQueue = |
| 95 std::queue<linked_ptr<presentation::SessionMessage>>; | 99 std::queue<linked_ptr<presentation::SessionMessage>>; |
| 96 MessageRequestQueue message_request_queue_; | 100 MessageRequestQueue message_request_queue_; |
| 97 | 101 |
| 98 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); | 102 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); |
| 99 }; | 103 }; |
| 100 | 104 |
| 101 } // namespace content | 105 } // namespace content |
| 102 | 106 |
| 103 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ | 107 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ |
| OLD | NEW |