| 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/id_map.h" | 9 #include "base/id_map.h" |
| 10 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 explicit PresentationDispatcher(RenderFrame* render_frame); | 30 explicit PresentationDispatcher(RenderFrame* render_frame); |
| 31 ~PresentationDispatcher() override; | 31 ~PresentationDispatcher() override; |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 // WebPresentationClient implementation. | 34 // WebPresentationClient implementation. |
| 35 virtual void setController( | 35 virtual void setController( |
| 36 blink::WebPresentationController* controller); | 36 blink::WebPresentationController* controller); |
| 37 virtual void updateAvailableChangeWatched(bool watched); | 37 virtual void updateAvailableChangeWatched(bool watched); |
| 38 virtual void startSession( | 38 virtual void startSession( |
| 39 const blink::WebString& presentationUrl, | 39 const blink::WebString& presentationUrl, |
| 40 blink::WebPresentationSessionClientCallbacks* callback); |
| 41 // TODO(mlamouri): remove this one when the one above is used by Blink. |
| 42 virtual void startSession( |
| 43 const blink::WebString& presentationUrl, |
| 40 const blink::WebString& presentationId, | 44 const blink::WebString& presentationId, |
| 41 blink::WebPresentationSessionClientCallbacks* callback); | 45 blink::WebPresentationSessionClientCallbacks* callback); |
| 42 virtual void joinSession( | 46 virtual void joinSession( |
| 43 const blink::WebString& presentationUrl, | 47 const blink::WebString& presentationUrl, |
| 44 const blink::WebString& presentationId, | 48 const blink::WebString& presentationId, |
| 45 blink::WebPresentationSessionClientCallbacks* callback); | 49 blink::WebPresentationSessionClientCallbacks* callback); |
| 46 virtual void sendString( | 50 virtual void sendString( |
| 47 const blink::WebString& presentationUrl, | 51 const blink::WebString& presentationUrl, |
| 48 const blink::WebString& presentationId, | 52 const blink::WebString& presentationId, |
| 49 const blink::WebString& message); | 53 const blink::WebString& message); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 using AvailabilityObserversSet = | 125 using AvailabilityObserversSet = |
| 122 std::set<blink::WebPresentationAvailabilityObserver*>; | 126 std::set<blink::WebPresentationAvailabilityObserver*>; |
| 123 AvailabilityObserversSet availability_observers_; | 127 AvailabilityObserversSet availability_observers_; |
| 124 | 128 |
| 125 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); | 129 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); |
| 126 }; | 130 }; |
| 127 | 131 |
| 128 } // namespace content | 132 } // namespace content |
| 129 | 133 |
| 130 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ | 134 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ |
| OLD | NEW |