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

Unified Diff: content/renderer/presentation/presentation_connection_proxy.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/presentation/presentation_connection_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/presentation/presentation_connection_proxy.h
diff --git a/content/renderer/presentation/presentation_connection_proxy.h b/content/renderer/presentation/presentation_connection_proxy.h
index 1c79ae226ca82242dd57359b10eb7b7be5be563b..0284856feec9558af374d0fc0a7d0cdeaa4b26e3 100644
--- a/content/renderer/presentation/presentation_connection_proxy.h
+++ b/content/renderer/presentation/presentation_connection_proxy.h
@@ -13,6 +13,7 @@
namespace blink {
class WebPresentationConnection;
+class WebPresentationReceiver;
} // namespace blink
namespace content {
@@ -96,7 +97,6 @@ class CONTENT_EXPORT PresentationConnectionProxy
mojo::InterfacePtr<blink::mojom::PresentationConnection>
target_connection_ptr_;
- private:
// Raw pointer to Blink connection object owning this proxy object. Does not
// take ownership.
blink::WebPresentationConnection* const source_connection_;
@@ -118,8 +118,8 @@ class CONTENT_EXPORT ControllerConnectionProxy
class CONTENT_EXPORT ReceiverConnectionProxy
: public PresentationConnectionProxy {
public:
- explicit ReceiverConnectionProxy(
- blink::WebPresentationConnection* receiver_connection);
+ ReceiverConnectionProxy(blink::WebPresentationConnection* receiver_connection,
+ blink::WebPresentationReceiver* receiver);
~ReceiverConnectionProxy() override;
void Bind(
@@ -129,6 +129,14 @@ class CONTENT_EXPORT ReceiverConnectionProxy
// called only once.
void BindControllerConnection(
blink::mojom::PresentationConnectionPtr controller_connection_ptr);
+
+ // PresentationConnectionProxy override
+ void DidChangeState(content::PresentationConnectionState state) override;
+
+ private:
+ // Raw pointer to PresentationReceiver. This class does not take ownership of
+ // |receiver_|.
+ blink::WebPresentationReceiver* receiver_;
};
} // namespace content
« no previous file with comments | « no previous file | content/renderer/presentation/presentation_connection_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698