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

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

Issue 10703095: New PeerConnection handler in Chrome to support latest PeerConnection draft (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Readd the UMA histogram for Deprecated PeerConnection to not screw up the stats. Created 8 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
(Empty)
1 // Copyright (c) 2012 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&) {
20 }
21
22 void MockWebPeerConnectionHandlerClient::didReceiveDataStreamMessage(
23 const char* data, size_t length) {
24 }
25
26 void MockWebPeerConnectionHandlerClient::didAddRemoteStream(
27 const WebMediaStreamDescriptor& stream_descriptor) {
28 stream_label_ = UTF16ToUTF8(stream_descriptor.label());
29 }
30
31 void MockWebPeerConnectionHandlerClient::didRemoveRemoteStream(
32 const WebMediaStreamDescriptor& stream_descriptor) {
33 DCHECK(stream_label_ == UTF16ToUTF8(stream_descriptor.label()));
34 stream_label_.clear();
35 }
36
37 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698