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

Unified Diff: chrome/browser/media/router/browser_presentation_connection_proxy.h

Issue 2943033003: [PresentationSevice] Use PresentationConnection to send messages from (Closed)
Patch Set: LOG -> DLOG Created 3 years, 6 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 | chrome/browser/media/router/browser_presentation_connection_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/router/browser_presentation_connection_proxy.h
diff --git a/chrome/browser/media/router/browser_presentation_connection_proxy.h b/chrome/browser/media/router/browser_presentation_connection_proxy.h
index e3437e2d589a36f3bf448c59232e670cd3fec3c1..8e4ab79e46ebf756a6e37adf651508c4e288b53c 100644
--- a/chrome/browser/media/router/browser_presentation_connection_proxy.h
+++ b/chrome/browser/media/router/browser_presentation_connection_proxy.h
@@ -5,6 +5,9 @@
#ifndef CHROME_BROWSER_MEDIA_ROUTER_BROWSER_PRESENTATION_CONNECTION_PROXY_H_
#define CHROME_BROWSER_MEDIA_ROUTER_BROWSER_PRESENTATION_CONNECTION_PROXY_H_
+#include <vector>
+
+#include "chrome/browser/media/router/route_message_observer.h"
#include "chrome/common/media_router/media_route.h"
#include "content/public/browser/presentation_service_delegate.h"
#include "content/public/common/presentation_connection_message.h"
@@ -37,7 +40,8 @@ class MediaRouter;
// |route_| is closed or terminated, instance of this class will be destroyed.
class BrowserPresentationConnectionProxy
- : public NON_EXPORTED_BASE(blink::mojom::PresentationConnection) {
+ : public NON_EXPORTED_BASE(blink::mojom::PresentationConnection),
+ public RouteMessageObserver {
public:
using OnMessageCallback = base::OnceCallback<void(bool)>;
@@ -67,6 +71,9 @@ class BrowserPresentationConnectionProxy
// support state change.
void OnClose() override {}
+ // RouteMessageObserver implementation.
+ void OnMessagesReceived(const std::vector<RouteMessage>& messages) override;
+
private:
// |router_| not owned by this class.
MediaRouter* const router_;
« no previous file with comments | « no previous file | chrome/browser/media/router/browser_presentation_connection_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698