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

Side by Side Diff: third_party/WebKit/public/platform/modules/presentation/WebPresentationReceiver.h

Issue 2737413003: [Presentation API] Remove references to presentation sessions. (Closed)
Patch Set: Update PresentationServiceDelegateImpl unittest 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 WebPresentationReceiver_h 5 #ifndef WebPresentationReceiver_h
6 #define WebPresentationReceiver_h 6 #define WebPresentationReceiver_h
7 7
8 #include "public/platform/WebCommon.h" 8 #include "public/platform/WebCommon.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 struct WebPresentationSessionInfo;
13 class WebPresentationConnection; 12 class WebPresentationConnection;
13 struct WebPresentationInfo;
14 enum class WebPresentationConnectionState; 14 enum class WebPresentationConnectionState;
15 15
16 // The delegate Blink provides to WebPresentationReceiverClient in order to get 16 // The delegate Blink provides to WebPresentationReceiverClient in order to get
17 // updates. 17 // updates.
18 class BLINK_PLATFORM_EXPORT WebPresentationReceiver { 18 class BLINK_PLATFORM_EXPORT WebPresentationReceiver {
19 public: 19 public:
20 virtual ~WebPresentationReceiver() = default; 20 virtual ~WebPresentationReceiver() = default;
21 21
22 // Called when receiver page gets an incoming connection. 22 // Called when receiver page gets an incoming connection.
23 virtual WebPresentationConnection* onReceiverConnectionAvailable( 23 virtual WebPresentationConnection* onReceiverConnectionAvailable(
24 const WebPresentationSessionInfo&) = 0; 24 const WebPresentationInfo&) = 0;
25 25
26 // Called when receiver page gets destroyed. 26 // Called when receiver page gets destroyed.
27 virtual void didChangeSessionState(WebPresentationConnectionState) = 0; 27 // TODO: Rename to onReceiverTerminated?
28 virtual void didChangeConnectionState(WebPresentationConnectionState) = 0;
28 29
29 // Called when any PresentationConnection object on receiver page invokes 30 // Called when any PresentationConnection object on receiver page invokes
30 // connnection.terminate(). 31 // connnection.terminate().
31 virtual void terminateConnection() = 0; 32 virtual void terminateConnection() = 0;
32 }; 33 };
33 34
34 } // namespace blink 35 } // namespace blink
35 36
36 #endif // WebPresentationReceiver_h 37 #endif // WebPresentationReceiver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698