| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 void sendBlobData( | 126 void sendBlobData( |
| 127 const blink::WebURL& presentationUrl, | 127 const blink::WebURL& presentationUrl, |
| 128 const blink::WebString& presentationId, | 128 const blink::WebString& presentationId, |
| 129 const uint8_t* data, | 129 const uint8_t* data, |
| 130 size_t length, | 130 size_t length, |
| 131 const blink::WebPresentationConnectionProxy* connection_proxy) override; | 131 const blink::WebPresentationConnectionProxy* connection_proxy) override; |
| 132 void closeSession( | 132 void closeSession( |
| 133 const blink::WebURL& presentationUrl, | 133 const blink::WebURL& presentationUrl, |
| 134 const blink::WebString& presentationId, | 134 const blink::WebString& presentationId, |
| 135 const blink::WebPresentationConnectionProxy* connection_proxy) override; | 135 const blink::WebPresentationConnectionProxy* connection_proxy) override; |
| 136 void terminateSession(const blink::WebURL& presentationUrl, | 136 void terminateConnection(const blink::WebURL& presentationUrl, |
| 137 const blink::WebString& presentationId) override; | 137 const blink::WebString& presentationId) override; |
| 138 void getAvailability( | 138 void getAvailability( |
| 139 const blink::WebVector<blink::WebURL>& availabilityUrls, | 139 const blink::WebVector<blink::WebURL>& availabilityUrls, |
| 140 std::unique_ptr<blink::WebPresentationAvailabilityCallbacks> callbacks) | 140 std::unique_ptr<blink::WebPresentationAvailabilityCallbacks> callbacks) |
| 141 override; | 141 override; |
| 142 void startListening(blink::WebPresentationAvailabilityObserver*) override; | 142 void startListening(blink::WebPresentationAvailabilityObserver*) override; |
| 143 void stopListening(blink::WebPresentationAvailabilityObserver*) override; | 143 void stopListening(blink::WebPresentationAvailabilityObserver*) override; |
| 144 void setDefaultPresentationUrls( | 144 void setDefaultPresentationUrls( |
| 145 const blink::WebVector<blink::WebURL>& presentationUrls) override; | 145 const blink::WebVector<blink::WebURL>& presentationUrls) override; |
| 146 | 146 |
| 147 // RenderFrameObserver implementation. | 147 // RenderFrameObserver implementation. |
| 148 void DidCommitProvisionalLoad( | 148 void DidCommitProvisionalLoad( |
| 149 bool is_new_navigation, | 149 bool is_new_navigation, |
| 150 bool is_same_page_navigation) override; | 150 bool is_same_page_navigation) override; |
| 151 void OnDestruct() override; | 151 void OnDestruct() override; |
| 152 void WidgetWillClose() override; |
| 152 | 153 |
| 153 // blink::mojom::PresentationServiceClient | 154 // blink::mojom::PresentationServiceClient |
| 154 void OnScreenAvailabilityNotSupported(const GURL& url) override; | 155 void OnScreenAvailabilityNotSupported(const GURL& url) override; |
| 155 void OnScreenAvailabilityUpdated(const GURL& url, bool available) override; | 156 void OnScreenAvailabilityUpdated(const GURL& url, bool available) override; |
| 156 void OnConnectionStateChanged(const PresentationSessionInfo& session_info, | 157 void OnConnectionStateChanged(const PresentationSessionInfo& session_info, |
| 157 PresentationConnectionState state) override; | 158 PresentationConnectionState state) override; |
| 158 void OnConnectionClosed(const PresentationSessionInfo& session_info, | 159 void OnConnectionClosed(const PresentationSessionInfo& session_info, |
| 159 PresentationConnectionCloseReason reason, | 160 PresentationConnectionCloseReason reason, |
| 160 const std::string& message) override; | 161 const std::string& message) override; |
| 161 void OnConnectionMessagesReceived( | 162 void OnConnectionMessagesReceived( |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 // Returns UNKNOWN if all urls in |urls| have screen availability | 280 // Returns UNKNOWN if all urls in |urls| have screen availability |
| 280 // UNKNOWN. | 281 // UNKNOWN. |
| 281 ScreenAvailability GetScreenAvailability(const std::vector<GURL>& urls) const; | 282 ScreenAvailability GetScreenAvailability(const std::vector<GURL>& urls) const; |
| 282 | 283 |
| 283 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); | 284 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); |
| 284 }; | 285 }; |
| 285 | 286 |
| 286 } // namespace content | 287 } // namespace content |
| 287 | 288 |
| 288 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ | 289 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ |
| OLD | NEW |