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

Unified 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, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/presentation/presentation_dispatcher.h
diff --git a/content/renderer/presentation/presentation_dispatcher.h b/content/renderer/presentation/presentation_dispatcher.h
index 3ec8da333ff7384e62e9e41fbc8d89f360761aa2..69b8d4aae79137bee5ca6ede5cd3ea4a7d8d937d 100644
--- a/content/renderer/presentation/presentation_dispatcher.h
+++ b/content/renderer/presentation/presentation_dispatcher.h
@@ -131,8 +131,8 @@ class CONTENT_EXPORT PresentationDispatcher
const blink::WebPresentationConnectionProxy* connection_proxy) override;
void closeSession(const blink::WebURL& presentationUrl,
const blink::WebString& presentationId) override;
- void terminateSession(const blink::WebURL& presentationUrl,
- const blink::WebString& presentationId) override;
+ void terminateConnection(const blink::WebURL& presentationUrl,
+ const blink::WebString& presentationId) override;
void getAvailability(
const blink::WebVector<blink::WebURL>& availabilityUrls,
std::unique_ptr<blink::WebPresentationAvailabilityCallbacks> callbacks)
@@ -147,6 +147,7 @@ class CONTENT_EXPORT PresentationDispatcher
bool is_new_navigation,
bool is_same_page_navigation) override;
void OnDestruct() override;
+ void WidgetWillClose() override;
// blink::mojom::PresentationServiceClient
void OnScreenAvailabilityNotSupported(const GURL& url) override;

Powered by Google App Engine
This is Rietveld 408576698