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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 blink::mojom::PresentationSessionInfoPtr session_info, | 118 blink::mojom::PresentationSessionInfoPtr session_info, |
119 std::vector<blink::mojom::SessionMessagePtr> messages) override; | 119 std::vector<blink::mojom::SessionMessagePtr> messages) override; |
120 void OnDefaultSessionStarted( | 120 void OnDefaultSessionStarted( |
121 blink::mojom::PresentationSessionInfoPtr session_info) override; | 121 blink::mojom::PresentationSessionInfoPtr session_info) override; |
122 | 122 |
123 void OnSessionCreated( | 123 void OnSessionCreated( |
124 blink::WebPresentationConnectionClientCallbacks* callback, | 124 blink::WebPresentationConnectionClientCallbacks* callback, |
125 blink::mojom::PresentationSessionInfoPtr session_info, | 125 blink::mojom::PresentationSessionInfoPtr session_info, |
126 blink::mojom::PresentationErrorPtr error); | 126 blink::mojom::PresentationErrorPtr error); |
127 void OnReceiverConnectionAvailable( | 127 void OnReceiverConnectionAvailable( |
128 blink::mojom::PresentationSessionInfoPtr) override; | 128 blink::mojom::PresentationSessionInfoPtr, |
| 129 blink::mojom::PresentationConnectionPtr) override; |
129 | 130 |
130 // Call to PresentationService to send the message in |request|. | 131 // Call to PresentationService to send the message in |request|. |
131 // |session_info| and |message| of |reuqest| will be consumed. | 132 // |session_info| and |message| of |reuqest| will be consumed. |
132 // |HandleSendMessageRequests| will be invoked after the send is attempted. | 133 // |HandleSendMessageRequests| will be invoked after the send is attempted. |
133 void DoSendMessage(SendMessageRequest* request); | 134 void DoSendMessage(SendMessageRequest* request); |
134 void HandleSendMessageRequests(bool success); | 135 void HandleSendMessageRequests(bool success); |
135 | 136 |
136 void ConnectToPresentationServiceIfNeeded(); | 137 void ConnectToPresentationServiceIfNeeded(); |
137 | 138 |
138 void UpdateListeningState(); | 139 void UpdateListeningState(); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // Updates the listening state of availability for |status| and notifies the | 179 // Updates the listening state of availability for |status| and notifies the |
179 // client. | 180 // client. |
180 void UpdateListeningState(AvailabilityStatus* status); | 181 void UpdateListeningState(AvailabilityStatus* status); |
181 | 182 |
182 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); | 183 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); |
183 }; | 184 }; |
184 | 185 |
185 } // namespace content | 186 } // namespace content |
186 | 187 |
187 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ | 188 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ |
OLD | NEW |