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

Unified Diff: media/cast/logging/log_event_dispatcher.h

Issue 1905763002: Convert //media/cast from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « media/cast/logging/log_deserializer.cc ('k') | media/cast/logging/log_event_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/logging/log_event_dispatcher.h
diff --git a/media/cast/logging/log_event_dispatcher.h b/media/cast/logging/log_event_dispatcher.h
index d84e79b7216082dfba9cc1aeeee5e97a591b2ec6..901dc39975d1c4551a64a670186c560f3324d5a0 100644
--- a/media/cast/logging/log_event_dispatcher.h
+++ b/media/cast/logging/log_event_dispatcher.h
@@ -5,11 +5,11 @@
#ifndef MEDIA_CAST_LOGGING_LOG_EVENT_DISPATCHER_H_
#define MEDIA_CAST_LOGGING_LOG_EVENT_DISPATCHER_H_
+#include <memory>
#include <vector>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "media/cast/logging/logging_defines.h"
#include "media/cast/logging/raw_event_subscriber.h"
@@ -31,11 +31,11 @@ class LogEventDispatcher {
// Called on any thread to schedule the sending of event(s) to all
// EventSubscribers on the MAIN thread.
- void DispatchFrameEvent(scoped_ptr<FrameEvent> event) const;
- void DispatchPacketEvent(scoped_ptr<PacketEvent> event) const;
+ void DispatchFrameEvent(std::unique_ptr<FrameEvent> event) const;
+ void DispatchPacketEvent(std::unique_ptr<PacketEvent> event) const;
void DispatchBatchOfEvents(
- scoped_ptr<std::vector<FrameEvent>> frame_events,
- scoped_ptr<std::vector<PacketEvent>> packet_events) const;
+ std::unique_ptr<std::vector<FrameEvent>> frame_events,
+ std::unique_ptr<std::vector<PacketEvent>> packet_events) const;
// Adds |subscriber| to the active list to begin receiving events on MAIN
// thread. Unsubscribe() must be called before |subscriber| is destroyed.
@@ -51,11 +51,11 @@ class LogEventDispatcher {
public:
Impl();
- void DispatchFrameEvent(scoped_ptr<FrameEvent> event) const;
- void DispatchPacketEvent(scoped_ptr<PacketEvent> event) const;
+ void DispatchFrameEvent(std::unique_ptr<FrameEvent> event) const;
+ void DispatchPacketEvent(std::unique_ptr<PacketEvent> event) const;
void DispatchBatchOfEvents(
- scoped_ptr<std::vector<FrameEvent>> frame_events,
- scoped_ptr<std::vector<PacketEvent>> packet_events) const;
+ std::unique_ptr<std::vector<FrameEvent>> frame_events,
+ std::unique_ptr<std::vector<PacketEvent>> packet_events) const;
void Subscribe(RawEventSubscriber* subscriber);
void Unsubscribe(RawEventSubscriber* subscriber);
« no previous file with comments | « media/cast/logging/log_deserializer.cc ('k') | media/cast/logging/log_event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698