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

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

Issue 2874483002: [Presentation API] Remove closed connections from PresentationConnectionList (Closed)
Patch Set: rebase with master Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/modules/presentation/PresentationReceiverTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
(...skipping 12 matching lines...) Expand all
23 virtual WebPresentationConnection* OnReceiverConnectionAvailable( 23 virtual WebPresentationConnection* OnReceiverConnectionAvailable(
24 const WebPresentationInfo&) = 0; 24 const WebPresentationInfo&) = 0;
25 25
26 // Called when receiver page gets destroyed. 26 // Called when receiver page gets destroyed.
27 // TODO: Rename to onReceiverTerminated? 27 // TODO: Rename to onReceiverTerminated?
28 virtual void DidChangeConnectionState(WebPresentationConnectionState) = 0; 28 virtual void DidChangeConnectionState(WebPresentationConnectionState) = 0;
29 29
30 // Called when any PresentationConnection object on receiver page invokes 30 // Called when any PresentationConnection object on receiver page invokes
31 // connnection.terminate(). 31 // connnection.terminate().
32 virtual void TerminateConnection() = 0; 32 virtual void TerminateConnection() = 0;
33
34 // Called when any receiver connection switches to 'closed' state. Remove the
35 // connection from PresentationReceiver's connection list.
36 virtual void RemoveConnection(WebPresentationConnection*) = 0;
33 }; 37 };
34 38
35 } // namespace blink 39 } // namespace blink
36 40
37 #endif // WebPresentationReceiver_h 41 #endif // WebPresentationReceiver_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/presentation/PresentationReceiverTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698