| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 std::unique_ptr<blink::WebPresentationAvailabilityCallbacks> callbacks) | 146 std::unique_ptr<blink::WebPresentationAvailabilityCallbacks> callbacks) |
| 147 override; | 147 override; |
| 148 void StartListening(blink::WebPresentationAvailabilityObserver*) override; | 148 void StartListening(blink::WebPresentationAvailabilityObserver*) override; |
| 149 void StopListening(blink::WebPresentationAvailabilityObserver*) override; | 149 void StopListening(blink::WebPresentationAvailabilityObserver*) override; |
| 150 void SetDefaultPresentationUrls( | 150 void SetDefaultPresentationUrls( |
| 151 const blink::WebVector<blink::WebURL>& presentationUrls) override; | 151 const blink::WebVector<blink::WebURL>& presentationUrls) override; |
| 152 | 152 |
| 153 // RenderFrameObserver implementation. | 153 // RenderFrameObserver implementation. |
| 154 void DidCommitProvisionalLoad(bool is_new_navigation, | 154 void DidCommitProvisionalLoad(bool is_new_navigation, |
| 155 bool is_same_document_navigation) override; | 155 bool is_same_document_navigation) override; |
| 156 void DidFinishDocumentLoad() override; |
| 156 void OnDestruct() override; | 157 void OnDestruct() override; |
| 157 void WidgetWillClose() override; | 158 void WidgetWillClose() override; |
| 158 | 159 |
| 159 // blink::mojom::PresentationServiceClient | 160 // blink::mojom::PresentationServiceClient |
| 160 void OnScreenAvailabilityNotSupported(const GURL& url) override; | 161 void OnScreenAvailabilityNotSupported(const GURL& url) override; |
| 161 void OnScreenAvailabilityUpdated(const GURL& url, bool available) override; | 162 void OnScreenAvailabilityUpdated(const GURL& url, bool available) override; |
| 162 void OnConnectionStateChanged(const PresentationInfo& presentation_info, | 163 void OnConnectionStateChanged(const PresentationInfo& presentation_info, |
| 163 PresentationConnectionState state) override; | 164 PresentationConnectionState state) override; |
| 164 void OnConnectionClosed(const PresentationInfo& presentation_info, | 165 void OnConnectionClosed(const PresentationInfo& presentation_info, |
| 165 PresentationConnectionCloseReason reason, | 166 PresentationConnectionCloseReason reason, |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 // Returns UNKNOWN if all urls in |urls| have screen availability | 286 // Returns UNKNOWN if all urls in |urls| have screen availability |
| 286 // UNKNOWN. | 287 // UNKNOWN. |
| 287 ScreenAvailability GetScreenAvailability(const std::vector<GURL>& urls) const; | 288 ScreenAvailability GetScreenAvailability(const std::vector<GURL>& urls) const; |
| 288 | 289 |
| 289 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); | 290 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); |
| 290 }; | 291 }; |
| 291 | 292 |
| 292 } // namespace content | 293 } // namespace content |
| 293 | 294 |
| 294 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ | 295 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ |
| OLD | NEW |