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

Unified Diff: media/cast/rtcp/receiver_rtcp_event_subscriber.h

Issue 145873007: Cast: Added missing DCHECKs to ThreadChecker calls and minor cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 10 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
Index: media/cast/rtcp/receiver_rtcp_event_subscriber.h
diff --git a/media/cast/rtcp/receiver_rtcp_event_subscriber.h b/media/cast/rtcp/receiver_rtcp_event_subscriber.h
index caf0bc79f63a8a56509c4afc6f6db1c815d60ac3..2200cdd9e6b6210519811d0e1d15d430a0c95efd 100644
--- a/media/cast/rtcp/receiver_rtcp_event_subscriber.h
+++ b/media/cast/rtcp/receiver_rtcp_event_subscriber.h
@@ -7,14 +7,12 @@
#include <map>
-#include "base/memory/ref_counted.h"
#include "base/threading/thread_checker.h"
#include "media/cast/logging/logging_defines.h"
#include "media/cast/logging/raw_event_subscriber.h"
#include "media/cast/rtcp/rtcp_defines.h"
namespace base {
-
class SingleThreadTaskRunner;
}
@@ -39,17 +37,13 @@ class ReceiverRtcpEventSubscriber : public RawEventSubscriber {
kVideoEventSubscriber // Only processes video events
};
- // |main_thread_proxy|: Check that the object is created in main thread.
- // This object does not hold a reference on it.
// |max_size_to_retain|: The object will keep up to |max_size_to_retain|
// events
// in the map. Once threshold has been reached, an event with the smallest
// RTP timestamp will be removed.
// |type|: Determines whether the subscriber will process only audio or video
// events.
- ReceiverRtcpEventSubscriber(
- const scoped_refptr<base::SingleThreadTaskRunner>& main_thread_proxy,
- const size_t max_size_to_retain, Type type);
+ ReceiverRtcpEventSubscriber(const size_t max_size_to_retain, Type type);
virtual ~ReceiverRtcpEventSubscriber();
« no previous file with comments | « media/cast/logging/simple_event_subscriber_unittest.cc ('k') | media/cast/rtcp/receiver_rtcp_event_subscriber.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698