diff options
author | Harald Alvestrand <hta@webrtc.org> | 2019-04-12 07:01:29 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-04-12 05:42:46 +0000 |
commit | 4d7160e41dabb373d6da85b9b8df6d9c5e7b53eb (patch) | |
tree | d18a403e96249c9d77467b41e7ac7bf84e13c8ec /api/jsep_session_description.h | |
parent | 8ad91372cfbb9bbc9d441cf503445bc3cc3fba47 (diff) | |
download | webrtc-4d7160e41dabb373d6da85b9b8df6d9c5e7b53eb.tar.gz |
Code cleanup: Make JsepSessionDescription::Initialize take std::unique_ptr
Bug: none
Change-Id: I5e03ff6a6f16bd2e67fa4830e218b510b702d1d4
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/132321
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27577}
Diffstat (limited to 'api/jsep_session_description.h')
-rw-r--r-- | api/jsep_session_description.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/api/jsep_session_description.h b/api/jsep_session_description.h index 75ae0cdae1..2797c881fe 100644 --- a/api/jsep_session_description.h +++ b/api/jsep_session_description.h @@ -44,8 +44,10 @@ class JsepSessionDescription : public SessionDescriptionInterface { virtual ~JsepSessionDescription(); // Takes ownership of |description|. - // TODO(deadbeef): Make this use an std::unique_ptr<>, so ownership logic is - // more clear. + bool Initialize(std::unique_ptr<cricket::SessionDescription> description, + const std::string& session_id, + const std::string& session_version); + // Backwards compatible version. To be deprecated. bool Initialize(cricket::SessionDescription* description, const std::string& session_id, const std::string& session_version); |