| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 // blink::mojom::PresentationServiceClient | 160 // blink::mojom::PresentationServiceClient |
| 161 void OnScreenAvailabilityNotSupported(const GURL& url) override; | 161 void OnScreenAvailabilityNotSupported(const GURL& url) override; |
| 162 void OnScreenAvailabilityUpdated( | 162 void OnScreenAvailabilityUpdated( |
| 163 const GURL& url, | 163 const GURL& url, |
| 164 blink::mojom::ScreenAvailability availability) override; | 164 blink::mojom::ScreenAvailability availability) override; |
| 165 void OnConnectionStateChanged(const PresentationInfo& presentation_info, | 165 void OnConnectionStateChanged(const PresentationInfo& presentation_info, |
| 166 PresentationConnectionState state) override; | 166 PresentationConnectionState state) override; |
| 167 void OnConnectionClosed(const PresentationInfo& presentation_info, | 167 void OnConnectionClosed(const PresentationInfo& presentation_info, |
| 168 PresentationConnectionCloseReason reason, | 168 PresentationConnectionCloseReason reason, |
| 169 const std::string& message) override; | 169 const std::string& message) override; |
| 170 void OnConnectionMessagesReceived( | |
| 171 const PresentationInfo& presentation_info, | |
| 172 std::vector<PresentationConnectionMessage> messages) override; | |
| 173 void OnDefaultPresentationStarted( | 170 void OnDefaultPresentationStarted( |
| 174 const PresentationInfo& presentation_info) override; | 171 const PresentationInfo& presentation_info) override; |
| 175 | 172 |
| 176 void OnConnectionCreated( | 173 void OnConnectionCreated( |
| 177 std::unique_ptr<blink::WebPresentationConnectionCallbacks> callback, | 174 std::unique_ptr<blink::WebPresentationConnectionCallbacks> callback, |
| 178 const base::Optional<PresentationInfo>& presentation_info, | 175 const base::Optional<PresentationInfo>& presentation_info, |
| 179 const base::Optional<PresentationError>& error); | 176 const base::Optional<PresentationError>& error); |
| 180 void OnReceiverConnectionAvailable( | 177 void OnReceiverConnectionAvailable( |
| 181 const PresentationInfo& presentation_info, | 178 const PresentationInfo& presentation_info, |
| 182 blink::mojom::PresentationConnectionPtr /*connection*/, | 179 blink::mojom::PresentationConnectionPtr /*connection*/, |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 // otherwise returns UNKNOWN. | 278 // otherwise returns UNKNOWN. |
| 282 blink::mojom::ScreenAvailability GetScreenAvailability( | 279 blink::mojom::ScreenAvailability GetScreenAvailability( |
| 283 const std::vector<GURL>& urls) const; | 280 const std::vector<GURL>& urls) const; |
| 284 | 281 |
| 285 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); | 282 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); |
| 286 }; | 283 }; |
| 287 | 284 |
| 288 } // namespace content | 285 } // namespace content |
| 289 | 286 |
| 290 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ | 287 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ |
| OLD | NEW |