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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 const blink::WebString& availabilityUrl, | 87 const blink::WebString& availabilityUrl, |
88 blink::WebPresentationAvailabilityCallbacks* callbacks) override; | 88 blink::WebPresentationAvailabilityCallbacks* callbacks) override; |
89 void startListening(blink::WebPresentationAvailabilityObserver*) override; | 89 void startListening(blink::WebPresentationAvailabilityObserver*) override; |
90 void stopListening(blink::WebPresentationAvailabilityObserver*) override; | 90 void stopListening(blink::WebPresentationAvailabilityObserver*) override; |
91 void setDefaultPresentationUrl(const blink::WebString& url) override; | 91 void setDefaultPresentationUrl(const blink::WebString& url) override; |
92 | 92 |
93 // RenderFrameObserver implementation. | 93 // RenderFrameObserver implementation. |
94 void DidCommitProvisionalLoad( | 94 void DidCommitProvisionalLoad( |
95 bool is_new_navigation, | 95 bool is_new_navigation, |
96 bool is_same_page_navigation) override; | 96 bool is_same_page_navigation) override; |
| 97 void OnDestruct() override; |
97 | 98 |
98 // blink::mojom::PresentationServiceClient | 99 // blink::mojom::PresentationServiceClient |
99 void OnScreenAvailabilityNotSupported(const mojo::String& url) override; | 100 void OnScreenAvailabilityNotSupported(const mojo::String& url) override; |
100 void OnScreenAvailabilityUpdated(const mojo::String& url, | 101 void OnScreenAvailabilityUpdated(const mojo::String& url, |
101 bool available) override; | 102 bool available) override; |
102 void OnConnectionStateChanged( | 103 void OnConnectionStateChanged( |
103 blink::mojom::PresentationSessionInfoPtr connection, | 104 blink::mojom::PresentationSessionInfoPtr connection, |
104 blink::mojom::PresentationConnectionState state) override; | 105 blink::mojom::PresentationConnectionState state) override; |
105 void OnConnectionClosed( | 106 void OnConnectionClosed( |
106 blink::mojom::PresentationSessionInfoPtr connection, | 107 blink::mojom::PresentationSessionInfoPtr connection, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 // Updates the listening state of availability for |status| and notifies the | 167 // Updates the listening state of availability for |status| and notifies the |
167 // client. | 168 // client. |
168 void UpdateListeningState(AvailabilityStatus* status); | 169 void UpdateListeningState(AvailabilityStatus* status); |
169 | 170 |
170 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); | 171 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); |
171 }; | 172 }; |
172 | 173 |
173 } // namespace content | 174 } // namespace content |
174 | 175 |
175 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ | 176 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ |
OLD | NEW |