diff options
author | Yuri Wiitala <miu@chromium.org> | 2020-11-30 08:13:53 -0800 |
---|---|---|
committer | Yuri Wiitala <miu@chromium.org> | 2020-11-30 20:03:13 +0000 |
commit | c6465ca683e686cd7f7dfa347e86451425e7af25 (patch) | |
tree | 71d7a43bb08d7d94d576e55c0e5ef0c0c5876040 /cast/sender/cast_platform_client.h | |
parent | 9be11f7d2b44dff83dc88dff054b967a43f319cc (diff) | |
download | openscreen-c6465ca683e686cd7f7dfa347e86451425e7af25.tar.gz |
Remote virtual connections [1/3]: Refactor VCRouter to extend VCManager.
This is a clean-up patch to simplify code structure. Before this patch,
all clients of VirtualConnectionRouter need to instantiate both a
VirtualConnectionManager and a VirtualConnectionRouter, and then pass
the former (by pointer) to the latter. After this patch, VCR extends
VCM, and clients need not worry about a VCM.
Bug: b/162542369
Change-Id: I0dff69819d9b5282a43643a2da0fe33e7bf0a3fd
Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/2546803
Reviewed-by: Brandon Tolsch <btolsch@chromium.org>
Diffstat (limited to 'cast/sender/cast_platform_client.h')
-rw-r--r-- | cast/sender/cast_platform_client.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cast/sender/cast_platform_client.h b/cast/sender/cast_platform_client.h index 41ad7fc7..8ea9a99a 100644 --- a/cast/sender/cast_platform_client.h +++ b/cast/sender/cast_platform_client.h @@ -7,7 +7,9 @@ #include <functional> #include <map> +#include <memory> #include <string> +#include <vector> #include "absl/types/optional.h" #include "cast/common/channel/cast_message_handler.h" @@ -19,7 +21,6 @@ namespace openscreen { namespace cast { struct ServiceInfo; -class VirtualConnectionManager; class VirtualConnectionRouter; // This class handles Cast messages that generally relate to the "platform", in @@ -35,7 +36,6 @@ class CastPlatformClient final : public CastMessageHandler { std::function<void(const std::string& app_id, AppAvailabilityResult)>; CastPlatformClient(VirtualConnectionRouter* router, - VirtualConnectionManager* manager, ClockNowFunctionPtr clock, TaskRunner* task_runner); ~CastPlatformClient() override; @@ -82,7 +82,6 @@ class CastPlatformClient final : public CastMessageHandler { const std::string sender_id_; VirtualConnectionRouter* const virtual_conn_router_; - VirtualConnectionManager* const virtual_conn_manager_; std::map<std::string /* device_id */, int> socket_id_by_device_id_; std::map<std::string /* device_id */, PendingRequests> pending_requests_by_device_id_; |