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

Unified Diff: webrtc/media/base/videocapturerfactory.h

Issue 2685093002: Switching some interfaces to use std::unique_ptr<>. (Closed)
Patch Set: Rebase onto master Created 3 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: webrtc/media/base/videocapturerfactory.h
diff --git a/webrtc/media/base/videocapturerfactory.h b/webrtc/media/base/videocapturerfactory.h
index 012c4a469bde3f0767daa6b7628c81b5c81efb6a..b6f886b6cf75c7b7cf38d32b54a68b4f8ffff983 100644
--- a/webrtc/media/base/videocapturerfactory.h
+++ b/webrtc/media/base/videocapturerfactory.h
@@ -11,6 +11,8 @@
#ifndef WEBRTC_MEDIA_BASE_VIDEOCAPTURERFACTORY_H_
#define WEBRTC_MEDIA_BASE_VIDEOCAPTURERFACTORY_H_
+#include <memory>
+
#include "webrtc/media/base/device.h"
namespace cricket {
@@ -22,7 +24,7 @@ class VideoDeviceCapturerFactory {
VideoDeviceCapturerFactory() {}
virtual ~VideoDeviceCapturerFactory() {}
- virtual VideoCapturer* Create(const Device& device) = 0;
+ virtual std::unique_ptr<VideoCapturer> Create(const Device& device) = 0;
};
} // namespace cricket

Powered by Google App Engine
This is Rietveld 408576698