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

Unified Diff: media/remoting/fake_remoting_controller.h

Issue 2457563002: Media Remoting: Add remoting control logic for encrypted contents. (Closed)
Patch Set: Addressed comments from PS#12. Fixed ASAN. Created 4 years, 1 month 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 | « media/remoting/BUILD.gn ('k') | media/remoting/fake_remoting_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/remoting/fake_remoting_controller.h
diff --git a/media/remoting/fake_remoting_controller.h b/media/remoting/fake_remoting_controller.h
index 66486e3966744a5cfdebf354335560a5b30e1fe7..7d20b3bd7dfe560a1f958132c7761e4d697e5bab 100644
--- a/media/remoting/fake_remoting_controller.h
+++ b/media/remoting/fake_remoting_controller.h
@@ -11,7 +11,7 @@
namespace media {
-class RemotingController;
+class RemotingSourceImpl;
class FakeRemotingDataStreamSender : public mojom::RemotingDataStreamSender {
public:
@@ -77,6 +77,9 @@ class FakeRemoter final : public mojom::Remoter {
std::unique_ptr<FakeRemotingDataStreamSender> audio_stream_sender_;
std::unique_ptr<FakeRemotingDataStreamSender> video_stream_sender_;
+
+ base::WeakPtrFactory<FakeRemoter> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(FakeRemoter);
};
@@ -96,7 +99,7 @@ class FakeRemoterFactory final : public mojom::RemoterFactory {
DISALLOW_COPY_AND_ASSIGN(FakeRemoterFactory);
};
-std::unique_ptr<RemotingController> CreateRemotingController(
+scoped_refptr<RemotingSourceImpl> CreateRemotingSourceImpl(
bool start_will_fail);
} // namespace media
« no previous file with comments | « media/remoting/BUILD.gn ('k') | media/remoting/fake_remoting_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698