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

Side by Side Diff: content/renderer/media/mock_web_peer_connection_handler_client.cc

Issue 8060055: Adding support for MediaStream and PeerConnection functionality (Closed) Base URL: http://git.chromium.org/chromium/chromium.git@trunk
Patch Set: Code review fixes. Created 9 years 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
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/logging.h"
6 #include "base/utf_string_conversions.h"
7 #include "content/renderer/media/mock_web_peer_connection_handler_client.h"
8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebMediaStre amDescriptor.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
10
11 namespace WebKit {
12
13 MockWebPeerConnectionHandlerClient::MockWebPeerConnectionHandlerClient() {}
14
15 MockWebPeerConnectionHandlerClient::~MockWebPeerConnectionHandlerClient() {}
16
17 void MockWebPeerConnectionHandlerClient::didCompleteICEProcessing() {}
18
19 void MockWebPeerConnectionHandlerClient::didGenerateSDP(const WebString& sdp) {
20 sdp_ = UTF16ToUTF8(sdp);
21 }
22
23 void MockWebPeerConnectionHandlerClient::didReceiveDataStreamMessage(
24 const char* data, size_t length) {
25 }
26
27 void MockWebPeerConnectionHandlerClient::didAddRemoteStream(
28 const WebMediaStreamDescriptor& stream_descriptor) {
29 stream_label_ = UTF16ToUTF8(stream_descriptor.label());
30 }
31
32 void MockWebPeerConnectionHandlerClient::didRemoveRemoteStream(
33 const WebMediaStreamDescriptor& stream_descriptor) {
34 DCHECK(stream_label_ == UTF16ToUTF8(stream_descriptor.label()));
35 stream_label_.clear();
36 }
37
38 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698