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

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

Issue 2863903002: [Presentation API] Change controller connection to 'terminated' when receiver connection terminates (Closed)
Patch Set: fix layout test failures 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/PresentationReceiver.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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 WebPresentationConnectionProxy_h 5 #ifndef WebPresentationConnectionProxy_h
6 #define WebPresentationConnectionProxy_h 6 #define WebPresentationConnectionProxy_h
7 7
8 namespace blink { 8 namespace blink {
9 9
10 enum class WebPresentationConnectionState;
11
10 // The implementation the embedder has to provide for the Presentation API to 12 // The implementation the embedder has to provide for the Presentation API to
11 // work. This class is used to send messages to a PresentationConnection hosted 13 // work. This class is used to send messages to a PresentationConnection hosted
12 // in a different frame. 14 // in a different frame.
13 class WebPresentationConnectionProxy { 15 class WebPresentationConnectionProxy {
14 public: 16 public:
15 virtual ~WebPresentationConnectionProxy() = default; 17 virtual ~WebPresentationConnectionProxy() = default;
16 18
17 // Close target connection. 19 // Close target connection.
18 virtual void Close() const = 0; 20 virtual void Close() const = 0;
21
22 // Notify target connection about connection state change.
23 virtual void NotifyTargetConnection(WebPresentationConnectionState) = 0;
19 }; 24 };
20 25
21 } // namespace blink 26 } // namespace blink
22 27
23 #endif // WebPresentationConnectionProxy_h 28 #endif // WebPresentationConnectionProxy_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698