Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: content/renderer/presentation/presentation_dispatcher.h

Issue 2484273003: [Presentation API] (1-UA) fire PresentationConnection onterminate event if receiver page gets destr… (Closed)
Patch Set: resolve code review comments from Mark Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 size_t length, 124 size_t length,
125 const blink::WebPresentationConnectionProxy* connection_proxy) override; 125 const blink::WebPresentationConnectionProxy* connection_proxy) override;
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(const blink::WebURL& presentationUrl, 132 void closeSession(const blink::WebURL& presentationUrl,
133 const blink::WebString& presentationId) override; 133 const blink::WebString& presentationId) override;
134 void terminateSession(const blink::WebURL& presentationUrl, 134 void terminateConnection(const blink::WebURL& presentationUrl,
135 const blink::WebString& presentationId) override; 135 const blink::WebString& presentationId) override;
136 void getAvailability( 136 void getAvailability(
137 const blink::WebVector<blink::WebURL>& availabilityUrls, 137 const blink::WebVector<blink::WebURL>& availabilityUrls,
138 std::unique_ptr<blink::WebPresentationAvailabilityCallbacks> callbacks) 138 std::unique_ptr<blink::WebPresentationAvailabilityCallbacks> callbacks)
139 override; 139 override;
140 void startListening(blink::WebPresentationAvailabilityObserver*) override; 140 void startListening(blink::WebPresentationAvailabilityObserver*) override;
141 void stopListening(blink::WebPresentationAvailabilityObserver*) override; 141 void stopListening(blink::WebPresentationAvailabilityObserver*) override;
142 void setDefaultPresentationUrls( 142 void setDefaultPresentationUrls(
143 const blink::WebVector<blink::WebURL>& presentationUrls) override; 143 const blink::WebVector<blink::WebURL>& presentationUrls) override;
144 144
145 // RenderFrameObserver implementation. 145 // RenderFrameObserver implementation.
146 void DidCommitProvisionalLoad( 146 void DidCommitProvisionalLoad(
147 bool is_new_navigation, 147 bool is_new_navigation,
148 bool is_same_page_navigation) override; 148 bool is_same_page_navigation) override;
149 void OnDestruct() override; 149 void OnDestruct() override;
150 void WidgetWillClose() override;
150 151
151 // blink::mojom::PresentationServiceClient 152 // blink::mojom::PresentationServiceClient
152 void OnScreenAvailabilityNotSupported(const GURL& url) override; 153 void OnScreenAvailabilityNotSupported(const GURL& url) override;
153 void OnScreenAvailabilityUpdated(const GURL& url, bool available) override; 154 void OnScreenAvailabilityUpdated(const GURL& url, bool available) override;
154 void OnConnectionStateChanged(const PresentationSessionInfo& session_info, 155 void OnConnectionStateChanged(const PresentationSessionInfo& session_info,
155 PresentationConnectionState state) override; 156 PresentationConnectionState state) override;
156 void OnConnectionClosed(const PresentationSessionInfo& session_info, 157 void OnConnectionClosed(const PresentationSessionInfo& session_info,
157 PresentationConnectionCloseReason reason, 158 PresentationConnectionCloseReason reason,
158 const std::string& message) override; 159 const std::string& message) override;
159 void OnConnectionMessagesReceived( 160 void OnConnectionMessagesReceived(
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // Returns UNKNOWN if all urls in |urls| have screen availability 278 // Returns UNKNOWN if all urls in |urls| have screen availability
278 // UNKNOWN. 279 // UNKNOWN.
279 ScreenAvailability GetScreenAvailability(const std::vector<GURL>& urls) const; 280 ScreenAvailability GetScreenAvailability(const std::vector<GURL>& urls) const;
280 281
281 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); 282 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher);
282 }; 283 };
283 284
284 } // namespace content 285 } // namespace content
285 286
286 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ 287 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698