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

Unified Diff: chrome/test/data/webrtc/roap_call.js

Issue 10804004: Remove the deprecated PeerConnection that uses the ROAP protocol. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed trailing whitespace in webrtc.py Created 8 years, 5 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
« no previous file with comments | « no previous file | chrome/test/data/webrtc/webrtc_roap_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webrtc/roap_call.js
diff --git a/chrome/test/data/webrtc/roap_call.js b/chrome/test/data/webrtc/roap_call.js
deleted file mode 100644
index e9c0dfffcb4f41ee4b197cd1c35d30681d061f26..0000000000000000000000000000000000000000
--- a/chrome/test/data/webrtc/roap_call.js
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * Copyright (c) 2012 The Chromium Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-// Public interface towards the other javascript files, such as
-// message_handling.js. The contract for these functions is described in
-// message_handling.js.
-
-function handleMessage(peerConnection, message) {
- peerConnection.processSignalingMessage(message);
-}
-
-function createPeerConnection(stun_server) {
- peerConnection = new webkitDeprecatedPeerConnection(
- stun_server, signalingMessageCallback);
- peerConnection.onaddstream = addStreamCallback;
- peerConnection.onremovestream = removeStreamCallback;
-
- return peerConnection;
-}
-
-function setupCall(peerConnection) {
- peerConnection.addStream(gLocalStream);
-}
-
-function answerCall(peerConnection, message) {
- peerConnection.addStream(gLocalStream);
- handleMessage(peerConnection, message);
-}
-
-// Internals.
-function signalingMessageCallback(message) {
- sendToPeer(gRemotePeerId, message);
-}
-
-function addStreamCallback(event) {
- debug('Receiving remote stream...');
- var streamUrl = webkitURL.createObjectURL(event.stream);
- document.getElementById('remote_view').src = streamUrl;
-
- // This means the call has been set up.
- returnToPyAuto('ok-call-established');
-}
-
-function removeStreamCallback(event) {
- debug('Call ended.');
- document.getElementById("remote_view").src = '';
-}
-
-
« no previous file with comments | « no previous file | chrome/test/data/webrtc/webrtc_roap_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698