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

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

Issue 2481193002: Provide move semantic for cricket::Codec and subclasses (Closed)
Patch Set: Remove some faulty test. 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 | « no previous file | webrtc/media/base/codec.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/codec.h
diff --git a/webrtc/media/base/codec.h b/webrtc/media/base/codec.h
index 84e63e82e913e7129e60f7a603ac4747dc93bc0f..aad586588b32f81646c85f27fa2970afec05fd46 100644
--- a/webrtc/media/base/codec.h
+++ b/webrtc/media/base/codec.h
@@ -74,6 +74,7 @@ struct Codec {
// Creates an empty codec.
Codec();
Codec(const Codec& c);
+ Codec(Codec&& c);
virtual ~Codec();
// Indicates if this codec is compatible with the specified codec.
@@ -100,6 +101,7 @@ struct Codec {
virtual webrtc::RtpCodecParameters ToCodecParameters() const;
Codec& operator=(const Codec& c);
+ Codec& operator=(Codec&& c);
bool operator==(const Codec& c) const;
@@ -121,6 +123,7 @@ struct AudioCodec : public Codec {
// Creates an empty codec.
AudioCodec();
AudioCodec(const AudioCodec& c);
+ AudioCodec(AudioCodec&& c);
virtual ~AudioCodec() = default;
// Indicates if this codec is compatible with the specified codec.
@@ -131,6 +134,7 @@ struct AudioCodec : public Codec {
webrtc::RtpCodecParameters ToCodecParameters() const override;
AudioCodec& operator=(const AudioCodec& c);
+ AudioCodec& operator=(AudioCodec&& c);
bool operator==(const AudioCodec& c) const;
@@ -147,11 +151,13 @@ struct VideoCodec : public Codec {
// Creates an empty codec.
VideoCodec();
VideoCodec(const VideoCodec& c);
+ VideoCodec(VideoCodec&& c);
virtual ~VideoCodec() = default;
std::string ToString() const;
VideoCodec& operator=(const VideoCodec& c);
+ VideoCodec& operator=(VideoCodec&& c);
bool operator==(const VideoCodec& c) const;
@@ -180,9 +186,11 @@ struct DataCodec : public Codec {
DataCodec(int id, const std::string& name);
DataCodec();
DataCodec(const DataCodec& c);
+ DataCodec(DataCodec&& c);
virtual ~DataCodec() = default;
DataCodec& operator=(const DataCodec& c);
+ DataCodec& operator=(DataCodec&& c);
std::string ToString() const;
};
« no previous file with comments | « no previous file | webrtc/media/base/codec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698