| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 void getAvailability( | 144 void getAvailability( |
| 145 const blink::WebVector<blink::WebURL>& availabilityUrls, | 145 const blink::WebVector<blink::WebURL>& availabilityUrls, |
| 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( | 154 void DidCommitProvisionalLoad(bool is_new_navigation, |
| 155 bool is_new_navigation, | 155 bool is_same_document_navigation) override; |
| 156 bool is_same_page_navigation) override; | |
| 157 void OnDestruct() override; | 156 void OnDestruct() override; |
| 158 void WidgetWillClose() override; | 157 void WidgetWillClose() override; |
| 159 | 158 |
| 160 // blink::mojom::PresentationServiceClient | 159 // blink::mojom::PresentationServiceClient |
| 161 void OnScreenAvailabilityNotSupported(const GURL& url) override; | 160 void OnScreenAvailabilityNotSupported(const GURL& url) override; |
| 162 void OnScreenAvailabilityUpdated(const GURL& url, bool available) override; | 161 void OnScreenAvailabilityUpdated(const GURL& url, bool available) override; |
| 163 void OnConnectionStateChanged(const PresentationInfo& presentation_info, | 162 void OnConnectionStateChanged(const PresentationInfo& presentation_info, |
| 164 PresentationConnectionState state) override; | 163 PresentationConnectionState state) override; |
| 165 void OnConnectionClosed(const PresentationInfo& presentation_info, | 164 void OnConnectionClosed(const PresentationInfo& presentation_info, |
| 166 PresentationConnectionCloseReason reason, | 165 PresentationConnectionCloseReason reason, |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 // Returns UNKNOWN if all urls in |urls| have screen availability | 285 // Returns UNKNOWN if all urls in |urls| have screen availability |
| 287 // UNKNOWN. | 286 // UNKNOWN. |
| 288 ScreenAvailability GetScreenAvailability(const std::vector<GURL>& urls) const; | 287 ScreenAvailability GetScreenAvailability(const std::vector<GURL>& urls) const; |
| 289 | 288 |
| 290 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); | 289 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); |
| 291 }; | 290 }; |
| 292 | 291 |
| 293 } // namespace content | 292 } // namespace content |
| 294 | 293 |
| 295 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ | 294 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ |
| OLD | NEW |