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

Unified Diff: media/cast/receiver/frame_receiver.h

Issue 2875043003: Remove base::SupportsWeakPtr from FrameReceiver (Closed)
Patch Set: 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 | media/cast/receiver/frame_receiver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/receiver/frame_receiver.h
diff --git a/media/cast/receiver/frame_receiver.h b/media/cast/receiver/frame_receiver.h
index dfda44fd4316c47128ac79948f34da52f3cfb5a9..7db6ef0a41777d33cfb1886c823005180736b8ac 100644
--- a/media/cast/receiver/frame_receiver.h
+++ b/media/cast/receiver/frame_receiver.h
@@ -50,8 +50,7 @@ class CastEnvironment;
//
// This class is not thread safe. Should only be called from the Main cast
// thread.
-class FrameReceiver : public RtpPayloadFeedback,
- public base::SupportsWeakPtr<FrameReceiver> {
+class FrameReceiver : public RtpPayloadFeedback {
public:
FrameReceiver(const scoped_refptr<CastEnvironment>& cast_environment,
const FrameReceiverConfig& config,
@@ -70,6 +69,8 @@ class FrameReceiver : public RtpPayloadFeedback,
// out-of-order. Returns true if the parsing of the packet succeeded.
bool ProcessPacket(std::unique_ptr<Packet> packet);
+ base::WeakPtr<FrameReceiver> AsWeakPtr();
+
protected:
friend class FrameReceiverTest; // Invokes ProcessParsedPacket().
« no previous file with comments | « no previous file | media/cast/receiver/frame_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698