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

Side by Side Diff: Source/modules/mediastream/RTCSessionDescription.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 63 }
64 64
65 RTCSessionDescription* RTCSessionDescription::create(WebRTCSessionDescription we bSessionDescription) 65 RTCSessionDescription* RTCSessionDescription::create(WebRTCSessionDescription we bSessionDescription)
66 { 66 {
67 return new RTCSessionDescription(webSessionDescription); 67 return new RTCSessionDescription(webSessionDescription);
68 } 68 }
69 69
70 RTCSessionDescription::RTCSessionDescription(WebRTCSessionDescription webSession Description) 70 RTCSessionDescription::RTCSessionDescription(WebRTCSessionDescription webSession Description)
71 : m_webSessionDescription(webSessionDescription) 71 : m_webSessionDescription(webSessionDescription)
72 { 72 {
73 ScriptWrappable::init(this);
74 } 73 }
75 74
76 String RTCSessionDescription::type() 75 String RTCSessionDescription::type()
77 { 76 {
78 return m_webSessionDescription.type(); 77 return m_webSessionDescription.type();
79 } 78 }
80 79
81 void RTCSessionDescription::setType(const String& type, ExceptionState& exceptio nState) 80 void RTCSessionDescription::setType(const String& type, ExceptionState& exceptio nState)
82 { 81 {
83 if (verifyType(type)) 82 if (verifyType(type))
(...skipping 11 matching lines...) Expand all
95 { 94 {
96 m_webSessionDescription.setSDP(sdp); 95 m_webSessionDescription.setSDP(sdp);
97 } 96 }
98 97
99 WebRTCSessionDescription RTCSessionDescription::webSessionDescription() 98 WebRTCSessionDescription RTCSessionDescription::webSessionDescription()
100 { 99 {
101 return m_webSessionDescription; 100 return m_webSessionDescription;
102 } 101 }
103 102
104 } // namespace blink 103 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/mediastream/RTCPeerConnection.cpp ('k') | Source/modules/mediastream/RTCStatsReport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698