New issue
Advanced search Search tips

Issue 862532 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

[Media Router] Refactor CastSocket::Observer API

Project Member Reported by imch...@chromium.org, Jul 11

Issue description

This bug is to track the refactoring of CastSocket::Observer API. The goal is to remove an extra copy operation for app messages from the receiver to the SDK.

The following changes:
- CastSocket::Observer should be tracked on each CastSocket instead of on CastSocketService. This allows us to remove the const CastSocket& parameter in the Observer APIs.
- If Cast MRP is the sole observer for each CastSocket, it should be able to move (instead of copy) the contents of a CastMessage. This allows us to remove an extra copy operation. This may require removing the use of chrome.cast.channel.{onMessage,onError} by the MR extension.
 

Sign in to add a comment