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

Side by Side Diff: third_party/WebKit/public/platform/modules/presentation/WebPresentationClient.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 WebPresentationClient_h 5 #ifndef WebPresentationClient_h
6 #define WebPresentationClient_h 6 #define WebPresentationClient_h
7 7
8 #include "public/platform/WebCallbacks.h" 8 #include "public/platform/WebCallbacks.h"
9 #include "public/platform/WebCommon.h" 9 #include "public/platform/WebCommon.h"
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const WebString& presentationId, 77 const WebString& presentationId,
78 const uint8_t* data, 78 const uint8_t* data,
79 size_t length, 79 size_t length,
80 const WebPresentationConnectionProxy*) = 0; 80 const WebPresentationConnectionProxy*) = 0;
81 81
82 // Called when the frame requests to close an existing session. 82 // Called when the frame requests to close an existing session.
83 virtual void closeSession(const WebURL& presentationUrl, 83 virtual void closeSession(const WebURL& presentationUrl,
84 const WebString& presentationId) = 0; 84 const WebString& presentationId) = 0;
85 85
86 // Called when the frame requests to terminate an existing session. 86 // Called when the frame requests to terminate an existing session.
87 virtual void terminateSession(const WebURL& presentationUrl, 87 virtual void terminateConnection(const WebURL& presentationUrl,
88 const WebString& presentationId) = 0; 88 const WebString& presentationId) = 0;
89 89
90 // Called when the frame wants to know the availability of a presentation 90 // Called when the frame wants to know the availability of a presentation
91 // display for |availabilityUrl|. 91 // display for |availabilityUrl|.
92 virtual void getAvailability( 92 virtual void getAvailability(
93 const WebVector<WebURL>& availabilityUrls, 93 const WebVector<WebURL>& availabilityUrls,
94 std::unique_ptr<WebPresentationAvailabilityCallbacks>) = 0; 94 std::unique_ptr<WebPresentationAvailabilityCallbacks>) = 0;
95 95
96 // Start listening to changes in presentation displays availability. The 96 // Start listening to changes in presentation displays availability. The
97 // observer will be notified in case of a change. The observer is 97 // observer will be notified in case of a change. The observer is
98 // respensible to call stopListening() before being destroyed. 98 // respensible to call stopListening() before being destroyed.
99 virtual void startListening(WebPresentationAvailabilityObserver*) = 0; 99 virtual void startListening(WebPresentationAvailabilityObserver*) = 0;
100 100
101 // Stop listening to changes in presentation displays availability. The 101 // Stop listening to changes in presentation displays availability. The
102 // observer will no longer be notified in case of a change. 102 // observer will no longer be notified in case of a change.
103 virtual void stopListening(WebPresentationAvailabilityObserver*) = 0; 103 virtual void stopListening(WebPresentationAvailabilityObserver*) = 0;
104 104
105 // Called when a defaultRequest has been set. It sends the url associated 105 // Called when a defaultRequest has been set. It sends the url associated
106 // with it for the embedder. 106 // with it for the embedder.
107 virtual void setDefaultPresentationUrls(const WebVector<WebURL>&) = 0; 107 virtual void setDefaultPresentationUrls(const WebVector<WebURL>&) = 0;
108 }; 108 };
109 109
110 } // namespace blink 110 } // namespace blink
111 111
112 #endif // WebPresentationClient_h 112 #endif // WebPresentationClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698