Deprecate owned naked pointers to cricket::SessionDescription

Recommended usage is to create copies with Clone() and to
call JsepSessionDescription::Initialize using std::move.

Bug: webrtc:10612
Change-Id: I626a08a35ba8e112471cec0374c944e96f8effbc
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/135941
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27911}
diff --git a/api/jsep_session_description.h b/api/jsep_session_description.h
index 2797c88..5a38c3a 100644
--- a/api/jsep_session_description.h
+++ b/api/jsep_session_description.h
@@ -23,6 +23,7 @@
 #include "api/jsep.h"
 #include "api/jsep_ice_candidate.h"
 #include "rtc_base/constructor_magic.h"
+#include "rtc_base/deprecation.h"
 
 namespace cricket {
 class SessionDescription;
@@ -47,10 +48,10 @@
   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);
+  // Backwards compatible version. Replace with version above.
+  RTC_DEPRECATED bool Initialize(cricket::SessionDescription* description,
+                                 const std::string& session_id,
+                                 const std::string& session_version);
 
   virtual cricket::SessionDescription* description() {
     return description_.get();