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

Unified Diff: public/platform/WebRTCDataChannelInit.h

Issue 16305017: Removes the old createDataChannel and starts to use the new one with WebRTCDataChannelInit (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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: public/platform/WebRTCDataChannelInit.h
diff --git a/public/platform/WebDeviceMotionListener.h b/public/platform/WebRTCDataChannelInit.h
similarity index 78%
copy from public/platform/WebDeviceMotionListener.h
copy to public/platform/WebRTCDataChannelInit.h
index b8da1500d6afa8f7c97bb38454effb119de1a4a2..5ab0d05a61ffc54854d3ada335613d09ab6d77ba 100644
--- a/public/platform/WebDeviceMotionListener.h
+++ b/public/platform/WebRTCDataChannelInit.h
@@ -28,19 +28,29 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebDeviceMotionListener_h
-#define WebDeviceMotionListener_h
+#ifndef WebRTCDataChannelInit_h
+#define WebRTCDataChannelInit_h
-namespace WebKit {
+#include "WebString.h"
-class WebDeviceMotionData;
+namespace WebKit {
-class WebDeviceMotionListener {
+struct WebRTCDataChannelInit {
public:
- // This method is called every time new device motion data is available.
- virtual void didChangeDeviceMotion(const WebDeviceMotionData&) = 0;
+ WebRTCDataChannelInit()
+ : ordered(true)
+ , maxRetransmitTime(-1)
+ , maxRetransmits(-1)
+ , negotiated(true)
+ , id(-1) { }
+ bool ordered;
+ int maxRetransmitTime;
+ int maxRetransmits;
+ WebString protocol;
+ bool negotiated;
+ int id;
};
} // namespace WebKit
-#endif // WebDeviceMotionListener_h
+#endif // WebRTCDataChannelInit_h

Powered by Google App Engine
This is Rietveld 408576698