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

Side by Side Diff: Source/core/platform/mediastream/RTCDataChannelHandler.cpp

Issue 21350002: MediaStream API: Update RTCDataChannel to match the specification (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 RTCDataChannelHandler::~RTCDataChannelHandler() 46 RTCDataChannelHandler::~RTCDataChannelHandler()
47 { 47 {
48 } 48 }
49 49
50 void RTCDataChannelHandler::setClient(RTCDataChannelHandlerClient* client) 50 void RTCDataChannelHandler::setClient(RTCDataChannelHandlerClient* client)
51 { 51 {
52 m_client = client; 52 m_client = client;
53 m_webHandler->setClient(m_client ? this : 0); 53 m_webHandler->setClient(m_client ? this : 0);
54 } 54 }
55 55
56 String RTCDataChannelHandler::label() 56 String RTCDataChannelHandler::label() const
57 { 57 {
58 return m_webHandler->label(); 58 return m_webHandler->label();
59 } 59 }
60 60
61 bool RTCDataChannelHandler::isReliable() 61 bool RTCDataChannelHandler::isReliable() const
62 { 62 {
63 return m_webHandler->isReliable(); 63 return m_webHandler->isReliable();
64 } 64 }
65 65
66 bool RTCDataChannelHandler::ordered() const
67 {
68 return m_webHandler->ordered();
69 }
70
71 unsigned short RTCDataChannelHandler::maxRetransmitTime() const
72 {
73 return m_webHandler->maxRetransmitTime();
74 }
75
76 unsigned short RTCDataChannelHandler::maxRetransmits() const
77 {
78 return m_webHandler->maxRetransmits();
79 }
80
81 String RTCDataChannelHandler::protocol() const
82 {
83 return m_webHandler->protocol();
84 }
85
86 bool RTCDataChannelHandler::negotiated() const
87 {
88 return m_webHandler->negotiated();
89 }
90
91 unsigned short RTCDataChannelHandler::id() const
92 {
93 return m_webHandler->id();
94 }
95
66 unsigned long RTCDataChannelHandler::bufferedAmount() 96 unsigned long RTCDataChannelHandler::bufferedAmount()
67 { 97 {
68 return m_webHandler->bufferedAmount(); 98 return m_webHandler->bufferedAmount();
69 } 99 }
70 100
71 bool RTCDataChannelHandler::sendStringData(const String& data) 101 bool RTCDataChannelHandler::sendStringData(const String& data)
72 { 102 {
73 return m_webHandler->sendStringData(data); 103 return m_webHandler->sendStringData(data);
74 } 104 }
75 105
(...skipping 25 matching lines...) Expand all
101 m_client->didReceiveRawData(data, size); 131 m_client->didReceiveRawData(data, size);
102 } 132 }
103 133
104 void RTCDataChannelHandler::didDetectError() const 134 void RTCDataChannelHandler::didDetectError() const
105 { 135 {
106 if (m_client) 136 if (m_client)
107 m_client->didDetectError(); 137 m_client->didDetectError();
108 } 138 }
109 139
110 } // namespace WebCore 140 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/platform/mediastream/RTCDataChannelHandler.h ('k') | Source/modules/mediastream/RTCDataChannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698